From 3fc88812980d814853b1c3b8cadce94a6edcc4a0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 20:30:13 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#779) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../AsyncCreateAnnotationSpecSet.java | 7 +++++-- .../SyncCreateAnnotationSpecSet.java | 7 +++++-- ...reateAnnotationSpecSetProjectnameAnnotationspecset.java | 7 +++++-- ...SyncCreateAnnotationSpecSetStringAnnotationspecset.java | 7 +++++-- .../createdataset/AsyncCreateDataset.java | 7 +++++-- .../createdataset/SyncCreateDataset.java | 7 +++++-- .../createdataset/SyncCreateDatasetProjectnameDataset.java | 7 +++++-- .../createdataset/SyncCreateDatasetStringDataset.java | 7 +++++-- .../createevaluationjob/AsyncCreateEvaluationJob.java | 7 +++++-- .../createevaluationjob/SyncCreateEvaluationJob.java | 7 +++++-- .../SyncCreateEvaluationJobProjectnameEvaluationjob.java | 7 +++++-- .../SyncCreateEvaluationJobStringEvaluationjob.java | 7 +++++-- .../createinstruction/AsyncCreateInstruction.java | 7 +++++-- .../createinstruction/AsyncCreateInstructionLRO.java | 7 +++++-- .../createinstruction/SyncCreateInstruction.java | 7 +++++-- .../SyncCreateInstructionProjectnameInstruction.java | 7 +++++-- .../SyncCreateInstructionStringInstruction.java | 7 +++++-- .../AsyncDeleteAnnotatedDataset.java | 7 +++++-- .../deleteannotateddataset/SyncDeleteAnnotatedDataset.java | 7 +++++-- .../AsyncDeleteAnnotationSpecSet.java | 7 +++++-- .../SyncDeleteAnnotationSpecSet.java | 7 +++++-- .../SyncDeleteAnnotationSpecSetAnnotationspecsetname.java | 7 +++++-- .../SyncDeleteAnnotationSpecSetString.java | 7 +++++-- .../deletedataset/AsyncDeleteDataset.java | 7 +++++-- .../deletedataset/SyncDeleteDataset.java | 7 +++++-- .../deletedataset/SyncDeleteDatasetDatasetname.java | 7 +++++-- .../deletedataset/SyncDeleteDatasetString.java | 7 +++++-- .../deleteevaluationjob/AsyncDeleteEvaluationJob.java | 7 +++++-- .../deleteevaluationjob/SyncDeleteEvaluationJob.java | 7 +++++-- .../SyncDeleteEvaluationJobEvaluationjobname.java | 7 +++++-- .../deleteevaluationjob/SyncDeleteEvaluationJobString.java | 7 +++++-- .../deleteinstruction/AsyncDeleteInstruction.java | 7 +++++-- .../deleteinstruction/SyncDeleteInstruction.java | 7 +++++-- .../SyncDeleteInstructionInstructionname.java | 7 +++++-- .../deleteinstruction/SyncDeleteInstructionString.java | 7 +++++-- .../exportdata/AsyncExportData.java | 7 +++++-- .../exportdata/AsyncExportDataLRO.java | 7 +++++-- .../exportdata/SyncExportData.java | 7 +++++-- ...aDatasetnameAnnotateddatasetnameStringOutputconfig.java | 7 +++++-- .../SyncExportDataDatasetnameStringStringOutputconfig.java | 7 +++++-- ...rtDataStringAnnotateddatasetnameStringOutputconfig.java | 7 +++++-- .../SyncExportDataStringStringStringOutputconfig.java | 7 +++++-- .../getannotateddataset/AsyncGetAnnotatedDataset.java | 7 +++++-- .../getannotateddataset/SyncGetAnnotatedDataset.java | 7 +++++-- .../SyncGetAnnotatedDatasetAnnotateddatasetname.java | 7 +++++-- .../getannotateddataset/SyncGetAnnotatedDatasetString.java | 7 +++++-- .../getannotationspecset/AsyncGetAnnotationSpecSet.java | 7 +++++-- .../getannotationspecset/SyncGetAnnotationSpecSet.java | 7 +++++-- .../SyncGetAnnotationSpecSetAnnotationspecsetname.java | 7 +++++-- .../SyncGetAnnotationSpecSetString.java | 7 +++++-- .../getdataitem/AsyncGetDataItem.java | 7 +++++-- .../getdataitem/SyncGetDataItem.java | 7 +++++-- .../getdataitem/SyncGetDataItemDataitemname.java | 7 +++++-- .../getdataitem/SyncGetDataItemString.java | 7 +++++-- .../getdataset/AsyncGetDataset.java | 7 +++++-- .../getdataset/SyncGetDataset.java | 7 +++++-- .../getdataset/SyncGetDatasetDatasetname.java | 7 +++++-- .../getdataset/SyncGetDatasetString.java | 7 +++++-- .../getevaluation/AsyncGetEvaluation.java | 7 +++++-- .../getevaluation/SyncGetEvaluation.java | 7 +++++-- .../getevaluation/SyncGetEvaluationEvaluationname.java | 7 +++++-- .../getevaluation/SyncGetEvaluationString.java | 7 +++++-- .../getevaluationjob/AsyncGetEvaluationJob.java | 7 +++++-- .../getevaluationjob/SyncGetEvaluationJob.java | 7 +++++-- .../SyncGetEvaluationJobEvaluationjobname.java | 7 +++++-- .../getevaluationjob/SyncGetEvaluationJobString.java | 7 +++++-- .../getexample/AsyncGetExample.java | 7 +++++-- .../getexample/SyncGetExample.java | 7 +++++-- .../getexample/SyncGetExampleExamplenameString.java | 7 +++++-- .../getexample/SyncGetExampleStringString.java | 7 +++++-- .../getinstruction/AsyncGetInstruction.java | 7 +++++-- .../getinstruction/SyncGetInstruction.java | 7 +++++-- .../getinstruction/SyncGetInstructionInstructionname.java | 7 +++++-- .../getinstruction/SyncGetInstructionString.java | 7 +++++-- .../importdata/AsyncImportData.java | 7 +++++-- .../importdata/AsyncImportDataLRO.java | 7 +++++-- .../importdata/SyncImportData.java | 7 +++++-- .../importdata/SyncImportDataDatasetnameInputconfig.java | 7 +++++-- .../importdata/SyncImportDataStringInputconfig.java | 7 +++++-- .../labelimage/AsyncLabelImage.java | 7 +++++-- .../labelimage/AsyncLabelImageLRO.java | 7 +++++-- .../labelimage/SyncLabelImage.java | 7 +++++-- ...tnameHumanannotationconfigLabelimagerequestfeature.java | 7 +++++-- ...tringHumanannotationconfigLabelimagerequestfeature.java | 7 +++++-- .../labeltext/AsyncLabelText.java | 7 +++++-- .../labeltext/AsyncLabelTextLRO.java | 7 +++++-- .../datalabelingserviceclient/labeltext/SyncLabelText.java | 7 +++++-- ...etnameHumanannotationconfigLabeltextrequestfeature.java | 7 +++++-- ...StringHumanannotationconfigLabeltextrequestfeature.java | 7 +++++-- .../labelvideo/AsyncLabelVideo.java | 7 +++++-- .../labelvideo/AsyncLabelVideoLRO.java | 7 +++++-- .../labelvideo/SyncLabelVideo.java | 7 +++++-- ...tnameHumanannotationconfigLabelvideorequestfeature.java | 7 +++++-- ...tringHumanannotationconfigLabelvideorequestfeature.java | 7 +++++-- .../listannotateddatasets/AsyncListAnnotatedDatasets.java | 7 +++++-- .../AsyncListAnnotatedDatasetsPaged.java | 7 +++++-- .../listannotateddatasets/SyncListAnnotatedDatasets.java | 7 +++++-- .../SyncListAnnotatedDatasetsDatasetnameString.java | 7 +++++-- .../SyncListAnnotatedDatasetsStringString.java | 7 +++++-- .../AsyncListAnnotationSpecSets.java | 7 +++++-- .../AsyncListAnnotationSpecSetsPaged.java | 7 +++++-- .../listannotationspecsets/SyncListAnnotationSpecSets.java | 7 +++++-- .../SyncListAnnotationSpecSetsProjectnameString.java | 7 +++++-- .../SyncListAnnotationSpecSetsStringString.java | 7 +++++-- .../listdataitems/AsyncListDataItems.java | 7 +++++-- .../listdataitems/AsyncListDataItemsPaged.java | 7 +++++-- .../listdataitems/SyncListDataItems.java | 7 +++++-- .../listdataitems/SyncListDataItemsDatasetnameString.java | 7 +++++-- .../listdataitems/SyncListDataItemsStringString.java | 7 +++++-- .../listdatasets/AsyncListDatasets.java | 7 +++++-- .../listdatasets/AsyncListDatasetsPaged.java | 7 +++++-- .../listdatasets/SyncListDatasets.java | 7 +++++-- .../listdatasets/SyncListDatasetsProjectnameString.java | 7 +++++-- .../listdatasets/SyncListDatasetsStringString.java | 7 +++++-- .../listevaluationjobs/AsyncListEvaluationJobs.java | 7 +++++-- .../listevaluationjobs/AsyncListEvaluationJobsPaged.java | 7 +++++-- .../listevaluationjobs/SyncListEvaluationJobs.java | 7 +++++-- .../SyncListEvaluationJobsProjectnameString.java | 7 +++++-- .../SyncListEvaluationJobsStringString.java | 7 +++++-- .../listexamples/AsyncListExamples.java | 7 +++++-- .../listexamples/AsyncListExamplesPaged.java | 7 +++++-- .../listexamples/SyncListExamples.java | 7 +++++-- .../SyncListExamplesAnnotateddatasetnameString.java | 7 +++++-- .../listexamples/SyncListExamplesStringString.java | 7 +++++-- .../listinstructions/AsyncListInstructions.java | 7 +++++-- .../listinstructions/AsyncListInstructionsPaged.java | 7 +++++-- .../listinstructions/SyncListInstructions.java | 7 +++++-- .../SyncListInstructionsProjectnameString.java | 7 +++++-- .../listinstructions/SyncListInstructionsStringString.java | 7 +++++-- .../pauseevaluationjob/AsyncPauseEvaluationJob.java | 7 +++++-- .../pauseevaluationjob/SyncPauseEvaluationJob.java | 7 +++++-- .../SyncPauseEvaluationJobEvaluationjobname.java | 7 +++++-- .../pauseevaluationjob/SyncPauseEvaluationJobString.java | 7 +++++-- .../resumeevaluationjob/AsyncResumeEvaluationJob.java | 7 +++++-- .../resumeevaluationjob/SyncResumeEvaluationJob.java | 7 +++++-- .../SyncResumeEvaluationJobEvaluationjobname.java | 7 +++++-- .../resumeevaluationjob/SyncResumeEvaluationJobString.java | 7 +++++-- .../searchevaluations/AsyncSearchEvaluations.java | 7 +++++-- .../searchevaluations/AsyncSearchEvaluationsPaged.java | 7 +++++-- .../searchevaluations/SyncSearchEvaluations.java | 7 +++++-- .../SyncSearchEvaluationsEvaluationnameString.java | 7 +++++-- .../SyncSearchEvaluationsStringString.java | 7 +++++-- .../AsyncSearchExampleComparisons.java | 7 +++++-- .../AsyncSearchExampleComparisonsPaged.java | 7 +++++-- .../SyncSearchExampleComparisons.java | 7 +++++-- .../SyncSearchExampleComparisonsEvaluationname.java | 7 +++++-- .../SyncSearchExampleComparisonsString.java | 7 +++++-- .../updateevaluationjob/AsyncUpdateEvaluationJob.java | 7 +++++-- .../updateevaluationjob/SyncUpdateEvaluationJob.java | 7 +++++-- .../SyncUpdateEvaluationJobEvaluationjobFieldmask.java | 7 +++++-- .../createdataset/SyncCreateDataset.java | 7 +++++-- .../createdataset/SyncCreateDataset.java | 7 +++++-- 154 files changed, 770 insertions(+), 308 deletions(-) diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java index c132d83a9c3..76b40b7d329 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataLabelingServiceSettings dataLabelingServiceSettings = DataLabelingServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java index 26efcd06336..b75f8a58c0c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataLabelingServiceSettings dataLabelingServiceSettings = DataLabelingServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); DataLabelingServiceClient dataLabelingServiceClient = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java index 05a1680f52d..ef2ccb4d024 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java index 3e49c1b79e5..ce007d7d98c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java index 02c035a33cd..c9b07a8b6cf 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAnnotationSpecSetProjectnameAnnotationspecset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java index 33f639fabaa..68331adbe64 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAnnotationSpecSetStringAnnotationspecset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java index 888b194eb9b..cdf2f8eeb66 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java index eda0e133bf7..6ee2413dc41 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java index 383fecda919..6ffa02c013a 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDatasetProjectnameDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); Dataset dataset = Dataset.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java index 9689119bfcb..d589af310d8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDatasetStringDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); Dataset dataset = Dataset.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java index 3b605def21b..ed00cad317b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateEvaluationJobRequest request = CreateEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java index a7f0e61b7c4..a2917e863d1 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateEvaluationJobRequest request = CreateEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java index d5e27e6b1b2..1894e85bf71 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEvaluationJobProjectnameEvaluationjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); EvaluationJob job = EvaluationJob.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java index 869a69e95f5..87e43379397 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEvaluationJobStringEvaluationjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); EvaluationJob job = EvaluationJob.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java index a013833f91c..38fe517b265 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateInstructionRequest request = CreateInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java index 360083058c2..154601c70ff 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateInstructionLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateInstructionRequest request = CreateInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java index be9568e0209..28da0e79f79 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateInstructionRequest request = CreateInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java index c0b6665900e..1deccd1e67b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstructionProjectnameInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); Instruction instruction = Instruction.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java index eac373dfa48..fc823202f97 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstructionStringInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); Instruction instruction = Instruction.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java index eac1a11bdd2..8950a95a50b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteAnnotatedDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteAnnotatedDatasetRequest request = DeleteAnnotatedDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java index d2d800c91b5..50ac382ca74 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAnnotatedDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteAnnotatedDatasetRequest request = DeleteAnnotatedDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java index 9c824dec63e..8061425b159 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java index 1057a0af092..de81bddb7c9 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java index 6f4e3ad651c..c92e302dd33 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAnnotationSpecSetAnnotationspecsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); dataLabelingServiceClient.deleteAnnotationSpecSet(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java index 87919c3706e..3684a0ef47f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAnnotationSpecSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]").toString(); dataLabelingServiceClient.deleteAnnotationSpecSet(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java index 25558da6bc5..9ea0e91c08f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java index 7c3657f3ef3..756e90dd57c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java index bcbfe77d889..feb59ed8c7b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteDatasetDatasetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); dataLabelingServiceClient.deleteDataset(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java index 04120bf4768..76ccc647d02 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteDatasetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); dataLabelingServiceClient.deleteDataset(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java index 3bacc3bcec1..9ee86a53305 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java index f37da8ada4f..d22b7dab21b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java index 3aeb26d9fff..ad88441bc08 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEvaluationJobEvaluationjobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); dataLabelingServiceClient.deleteEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java index d83c7193499..a6e98fb9078 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEvaluationJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString(); dataLabelingServiceClient.deleteEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java index d4f16bec16f..f672771da36 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java index 4a9546d6be1..b08c8d94564 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java index 54d4b143b0e..0699911faa2 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstructionInstructionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); dataLabelingServiceClient.deleteInstruction(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java index bda4045b1ae..d896230cb39 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstructionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = InstructionName.of("[PROJECT]", "[INSTRUCTION]").toString(); dataLabelingServiceClient.deleteInstruction(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java index a59e44f717c..25fb8f04f12 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportData() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ExportDataRequest request = ExportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java index fa75aa724f5..7be082df343 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportDataLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ExportDataRequest request = ExportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java index eaa9aad62b0..d349e6ea2dc 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportData() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ExportDataRequest request = ExportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java index e5ed8a6478c..a0cf55ba42d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); AnnotatedDatasetName annotatedDataset = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java index 1baac1ce5df..6f80dd56cda 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportDataDatasetnameStringStringOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); String annotatedDataset = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java index dcf73b89f3b..a022a38defe 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportDataStringAnnotateddatasetnameStringOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); AnnotatedDatasetName annotatedDataset = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java index caa2b929073..10abfc46960 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportDataStringStringStringOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); String annotatedDataset = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java index 31a8530acd0..596a5b0d0d5 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetAnnotatedDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetAnnotatedDatasetRequest request = GetAnnotatedDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java index d5eed55721c..f9ba2609ea9 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotatedDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetAnnotatedDatasetRequest request = GetAnnotatedDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java index 704fd7fc597..620e5a26aca 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotatedDatasetAnnotateddatasetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { AnnotatedDatasetName name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java index eb9004c34c9..eff779f1de0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotatedDatasetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]").toString(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java index 8b6ae2c1a11..b37a0989791 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetAnnotationSpecSetRequest request = GetAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java index 8cafb4899b4..a53ff40e0be 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetAnnotationSpecSetRequest request = GetAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java index e1b5ecca8f2..361d9a72b08 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotationSpecSetAnnotationspecsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); AnnotationSpecSet response = dataLabelingServiceClient.getAnnotationSpecSet(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java index 57759e0000e..6987b374e10 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotationSpecSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]").toString(); AnnotationSpecSet response = dataLabelingServiceClient.getAnnotationSpecSet(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java index ba3208a0712..cc54cc49700 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetDataItem() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetDataItemRequest request = GetDataItemRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java index 254306d072f..6aa86b0c890 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDataItem() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetDataItemRequest request = GetDataItemRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java index ec4d0881c56..3ce14c2f21e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDataItemDataitemname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DataItemName name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]"); DataItem response = dataLabelingServiceClient.getDataItem(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java index 0bb6bb11060..afc149e8b42 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDataItemString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]").toString(); DataItem response = dataLabelingServiceClient.getDataItem(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java index 7665af281f4..35d59054ef9 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetDatasetRequest request = GetDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java index 4a435b7c6c2..a0da8de93ce 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetDatasetRequest request = GetDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java index fcdb843adab..0b49aa07b11 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDatasetDatasetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); Dataset response = dataLabelingServiceClient.getDataset(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java index 6b238a6dc52..83080c40124 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDatasetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); Dataset response = dataLabelingServiceClient.getDataset(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java index 5b1c4415a29..a75835f7d1f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetEvaluation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java index aa6f500f62b..a94871c7022 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java index 36d28563b99..0010ec89583 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationEvaluationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationName name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); Evaluation response = dataLabelingServiceClient.getEvaluation(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java index ea4dbbbec43..8f362818139 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); Evaluation response = dataLabelingServiceClient.getEvaluation(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java index 0efb957cd47..f9ed09a4c2c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetEvaluationJobRequest request = GetEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java index 2a91c1acfcd..9512bfa00bb 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetEvaluationJobRequest request = GetEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java index 9616509c903..49ef2afb789 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationJobEvaluationjobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); EvaluationJob response = dataLabelingServiceClient.getEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java index 731be76bcae..cc23c9cf5ad 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString(); EvaluationJob response = dataLabelingServiceClient.getEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java index afb7a62c48f..2ff87ae6b7c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetExample() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetExampleRequest request = GetExampleRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java index 0887901b8a8..c4252c63e48 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetExample() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetExampleRequest request = GetExampleRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java index 3777ba7ca0e..3bc232f2645 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetExampleExamplenameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ExampleName name = ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]"); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java index afbc9d71a17..187daec2610 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetExampleStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]").toString(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java index 19c6a4dc297..adaf1500e24 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetInstructionRequest request = GetInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java index 56a03e8aff7..9b1dd23209d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetInstructionRequest request = GetInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java index 2e6cacf112d..45a7319eeb6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstructionInstructionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); Instruction response = dataLabelingServiceClient.getInstruction(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java index 0559a1e8e78..02129b52d83 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstructionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = InstructionName.of("[PROJECT]", "[INSTRUCTION]").toString(); Instruction response = dataLabelingServiceClient.getInstruction(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java index 8526beeda50..74ff9549bad 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportData() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ImportDataRequest request = ImportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java index 2c000a23dd6..c22eb2d2a00 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportDataLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ImportDataRequest request = ImportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java index 367c99aced2..113e35ab31e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportData() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ImportDataRequest request = ImportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java index 3c104980a0f..c9a54aafd4f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportDataDatasetnameInputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); InputConfig inputConfig = InputConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java index e89887497d5..bb376fa0444 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportDataStringInputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); InputConfig inputConfig = InputConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java index de92c42e21d..c74b3782eb8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelImageRequest request = LabelImageRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java index 181c811a6be..782d64f96a4 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelImageLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelImageRequest request = LabelImageRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java index 16edd588b38..3ae2a05a284 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncLabelImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelImageRequest request = LabelImageRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java index c5f79ebd9cb..c961ee1fd7a 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java index 090539c21f7..396b1858509 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelImageStringHumanannotationconfigLabelimagerequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java index 4ceccf339b1..319c1fd6d57 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelText() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelTextRequest request = LabelTextRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java index 2f22799a240..3f378b6ad7a 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelTextLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelTextRequest request = LabelTextRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java index dab10284bd8..9d713b1dbbf 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncLabelText() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelTextRequest request = LabelTextRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java index c62b578df68..2f8f3326f80 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java index 060f5cb9851..5fd877b93b3 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelTextStringHumanannotationconfigLabeltextrequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java index be1f35c27a9..03be90a92a8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelVideo() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelVideoRequest request = LabelVideoRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java index 741d8166845..0edd94ff74c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelVideoLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelVideoRequest request = LabelVideoRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java index ff423baa947..e151149e3c8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncLabelVideo() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelVideoRequest request = LabelVideoRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java index ae41c7836a3..f58203e714a 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java index 13c4010f8ac..ac8f867c216 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelVideoStringHumanannotationconfigLabelvideorequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java index 7e67e7da484..ac72ff92762 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAnnotatedDatasets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java index 0814f16716e..8ae9f1e57a7 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAnnotatedDatasetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java index 21c515d2386..3b151cd28e0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotatedDatasets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java index d7825e17ff7..c0c27ef632c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotatedDatasetsDatasetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java index 1e590017c1d..23308628ab4 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotatedDatasetsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java index 57e428fc44d..632edcd5271 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAnnotationSpecSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java index 555061e4bdf..fb40bd3a0f6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAnnotationSpecSetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java index f1c851fe5d1..10ec0755fef 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotationSpecSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java index 73b8c608701..f9c063170ee 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotationSpecSetsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java index 0f5f7e1ee66..7f96d929c55 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotationSpecSetsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java index f5282d05a2b..f4b3537c37f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDataItems() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDataItemsRequest request = ListDataItemsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java index 62c1fc6bfd1..2acb0a02adc 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDataItemsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDataItemsRequest request = ListDataItemsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java index 6d2ff0479f4..5d8037ef5d5 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDataItems() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDataItemsRequest request = ListDataItemsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java index 7c0675042c8..a7d364fdc6e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDataItemsDatasetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java index e4b1aab1b36..1b728fdf382 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDataItemsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java index 4a90525503a..bc924ad6853 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDatasets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java index ca29ff72315..1f5486c3863 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDatasetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java index 1a33989b6cd..d6edffb1498 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDatasets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java index 283ff8cca70..cf59e68d875 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDatasetsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java index 5ba3108fe74..d47114530bc 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDatasetsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java index 94b919e121b..2e1e9e73383 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListEvaluationJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java index 0d98172e223..77ed44b6e03 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListEvaluationJobsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java index 11de769cba8..5e933222845 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEvaluationJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java index 270c9ced847..d6f740980b6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEvaluationJobsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java index 01b475a4926..081d9d4698e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEvaluationJobsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java index 09e4245f022..d342f951c46 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListExamples() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListExamplesRequest request = ListExamplesRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java index 3e7c0adccd3..3f163a886a3 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListExamplesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListExamplesRequest request = ListExamplesRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java index 004588e6fcd..05547e072e2 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListExamples() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListExamplesRequest request = ListExamplesRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java index 19d117a4c0e..5aab18f75de 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListExamplesAnnotateddatasetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { AnnotatedDatasetName parent = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java index d8afb8125ad..d8659ad0555 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListExamplesStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]").toString(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java index b934c6871a3..5cd31e6625f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInstructions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListInstructionsRequest request = ListInstructionsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java index 9dcb89fc7ca..c3469f2874d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInstructionsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListInstructionsRequest request = ListInstructionsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java index 246e744ed77..0bef90eaaa0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstructions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListInstructionsRequest request = ListInstructionsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java index c066e6eb5bf..91045625fd6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstructionsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java index 1dd619c9225..e9dd7acaee0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstructionsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java index 185e44dbd5d..dab06b7cdda 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncPauseEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { PauseEvaluationJobRequest request = PauseEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java index fd06ffacfdb..50b185c3a5d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncPauseEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { PauseEvaluationJobRequest request = PauseEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java index 8153770710d..cc1b3db790e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncPauseEvaluationJobEvaluationjobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); dataLabelingServiceClient.pauseEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java index 014120495bb..21a661554f5 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncPauseEvaluationJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString(); dataLabelingServiceClient.pauseEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java index c723236ee6a..baf23745010 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncResumeEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ResumeEvaluationJobRequest request = ResumeEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java index 5b47c05bb68..07c980eaa9c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncResumeEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ResumeEvaluationJobRequest request = ResumeEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java index e36e4d06de8..64b23be4525 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncResumeEvaluationJobEvaluationjobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); dataLabelingServiceClient.resumeEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java index aa231be13dc..a1cdaf142b0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncResumeEvaluationJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString(); dataLabelingServiceClient.resumeEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java index f55aafa1983..cd759458aeb 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchEvaluations() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java index da70f324dbd..f019fa3af8d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchEvaluationsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java index 72cf95ad01d..0c5aa997bb8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchEvaluations() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java index 609bd503f5f..6b7b48144d6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchEvaluationsEvaluationnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java index ae9b381fcf7..271309c4872 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchEvaluationsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java index 954bf79e177..84063ee7579 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchExampleComparisons() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java index cf353b32690..feab1e06299 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchExampleComparisonsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java index dc123ebfc1a..aec99c45f00 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchExampleComparisons() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java index 3113fab5d41..c1ba30ac839 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchExampleComparisonsEvaluationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); for (SearchExampleComparisonsResponse.ExampleComparison element : diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java index f0023271cae..2cd68bffe3c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchExampleComparisonsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); for (SearchExampleComparisonsResponse.ExampleComparison element : diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java index a896afb4565..e36f178d658 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { UpdateEvaluationJobRequest request = UpdateEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java index ef6dc738277..28d86caaca9 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { UpdateEvaluationJobRequest request = UpdateEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java index a138aebf051..cba6e1b2ee8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateEvaluationJobEvaluationjobFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJob evaluationJob = EvaluationJob.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java index cb50b0b8e78..9f8425067e2 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder = DataLabelingServiceSettings.newBuilder(); dataLabelingServiceSettingsBuilder diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java index 9e72ba875c0..cc880452226 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataLabelingServiceStubSettings.Builder dataLabelingServiceSettingsBuilder = DataLabelingServiceStubSettings.newBuilder(); dataLabelingServiceSettingsBuilder