{@code
- * // 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();
@@ -86,8 +89,11 @@
* To customize credentials:
*
*
{@code
- * // 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))
@@ -99,8 +105,11 @@
* To customize the endpoint:
*
*
{@code
- * // 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 =
@@ -178,8 +187,11 @@ public final OperationsClient getOperationsClient() {
* Sample code:
*
*
{@code
- * // 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();
@@ -207,8 +219,11 @@ public final Dataset createDataset(ProjectName parent, Dataset dataset) {
* Sample code:
*
*
{@code
- * // 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();
@@ -233,8 +248,11 @@ public final Dataset createDataset(String parent, Dataset dataset) {
* Sample code:
*
*
{@code
- * // 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()
@@ -259,8 +277,11 @@ public final Dataset createDataset(CreateDatasetRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -285,8 +306,11 @@ public final UnaryCallable createDatasetCallable(
* Sample code:
*
*
{@code
- * // 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);
@@ -310,8 +334,11 @@ public final Dataset getDataset(DatasetName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -334,8 +361,11 @@ public final Dataset getDataset(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -359,8 +389,11 @@ public final Dataset getDataset(GetDatasetRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -384,8 +417,11 @@ public final UnaryCallable getDatasetCallable() {
* Sample code:
*
*
{@code
- * // 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";
@@ -415,8 +451,11 @@ public final ListDatasetsPagedResponse listDatasets(ProjectName parent, String f
* Sample code:
*
*
{@code
- * // 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";
@@ -443,8 +482,11 @@ public final ListDatasetsPagedResponse listDatasets(String parent, String filter
* Sample code:
*
*
{@code
- * // 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()
@@ -473,8 +515,11 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
* Sample code:
*
*
{@code
- * // 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()
@@ -504,8 +549,11 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
* Sample code:
*
*
{@code
- * // 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()
@@ -541,8 +589,11 @@ public final UnaryCallable listDatase
* Sample code:
*
*
{@code
- * // 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);
@@ -566,8 +617,11 @@ public final void deleteDataset(DatasetName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -590,8 +644,11 @@ public final void deleteDataset(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -615,8 +672,11 @@ public final void deleteDataset(DeleteDatasetRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -643,8 +703,11 @@ public final UnaryCallable deleteDatasetCallable()
* Sample code:
*
*
{@code
- * // 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();
@@ -678,8 +741,11 @@ public final UnaryCallable deleteDatasetCallable()
* Sample code:
*
*
{@code
- * // 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();
@@ -710,8 +776,11 @@ public final UnaryCallable deleteDatasetCallable()
* Sample code:
*
*
{@code
- * // 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()
@@ -742,8 +811,11 @@ public final UnaryCallable deleteDatasetCallable()
* Sample code:
*
*
{@code
- * // 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()
@@ -774,8 +846,11 @@ public final UnaryCallable deleteDatasetCallable()
* Sample code:
*
*
{@code
- * // 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()
@@ -801,8 +876,11 @@ public final UnaryCallable importDataCallable() {
* Sample code:
*
*
{@code
- * // 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 =
@@ -848,8 +926,11 @@ public final UnaryCallable importDataCallable() {
* Sample code:
*
*
{@code
- * // 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 =
@@ -892,8 +973,11 @@ public final UnaryCallable importDataCallable() {
* Sample code:
*
*
{@code
- * // 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 =
@@ -939,8 +1023,11 @@ public final UnaryCallable importDataCallable() {
* Sample code:
*
*
{@code
- * // 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 =
@@ -983,8 +1070,11 @@ public final UnaryCallable importDataCallable() {
* Sample code:
*
*
{@code
- * // 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()
@@ -1016,8 +1106,11 @@ public final UnaryCallable importDataCallable() {
* Sample code:
*
*
{@code
- * // 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()
@@ -1049,8 +1142,11 @@ public final UnaryCallable importDataCallable() {
* Sample code:
*
*
{@code
- * // 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()
@@ -1081,8 +1177,11 @@ public final UnaryCallable exportDataCallable() {
* Sample code:
*
*
{@code
- * // 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);
@@ -1107,8 +1206,11 @@ public final DataItem getDataItem(DataItemName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -1132,8 +1234,11 @@ public final DataItem getDataItem(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -1158,8 +1263,11 @@ public final DataItem getDataItem(GetDataItemRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -1184,8 +1292,11 @@ public final UnaryCallable getDataItemCallable() {
* Sample code:
*
*
{@code
- * // 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";
@@ -1218,8 +1329,11 @@ public final ListDataItemsPagedResponse listDataItems(DatasetName parent, String
* Sample code:
*
*
{@code
- * // 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";
@@ -1249,8 +1363,11 @@ public final ListDataItemsPagedResponse listDataItems(String parent, String filt
* Sample code:
*
*
{@code
- * // 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()
@@ -1280,8 +1397,11 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
* Sample code:
*
*
{@code
- * // 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()
@@ -1312,8 +1432,11 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
* Sample code:
*
*
{@code
- * // 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()
@@ -1349,8 +1472,11 @@ public final UnaryCallable listData
* Sample code:
*
*
{@code
- * // 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]");
@@ -1377,8 +1503,11 @@ public final AnnotatedDataset getAnnotatedDataset(AnnotatedDatasetName name) {
* Sample code:
*
*
{@code
- * // 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();
@@ -1403,8 +1532,11 @@ public final AnnotatedDataset getAnnotatedDataset(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -1430,8 +1562,11 @@ public final AnnotatedDataset getAnnotatedDataset(GetAnnotatedDatasetRequest req
* Sample code:
*
*
{@code
- * // 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()
@@ -1458,8 +1593,11 @@ public final AnnotatedDataset getAnnotatedDataset(GetAnnotatedDatasetRequest req
* Sample code:
*
*
{@code
- * // 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";
@@ -1492,8 +1630,11 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
* Sample code:
*
*
{@code
- * // 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";
@@ -1523,8 +1664,11 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
* Sample code:
*
*
{@code
- * // 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()
@@ -1555,8 +1699,11 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
* Sample code:
*
*
{@code
- * // 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()
@@ -1586,8 +1733,11 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
* Sample code:
*
*
{@code
- * // 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()
@@ -1624,8 +1774,11 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
* Sample code:
*
*
{@code
- * // 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()
@@ -1651,8 +1804,11 @@ public final void deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request)
* Sample code:
*
*
{@code
- * // 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()
@@ -1680,8 +1836,11 @@ public final void deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request)
* Sample code:
*
*
{@code
- * // 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();
@@ -1716,8 +1875,11 @@ public final OperationFuture labelImag
* Sample code:
*
*
{@code
- * // 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();
@@ -1752,8 +1914,11 @@ public final OperationFuture labelImag
* Sample code:
*
*
{@code
- * // 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()
@@ -1780,8 +1945,11 @@ public final OperationFuture labelImag
* Sample code:
*
*
{@code
- * // 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()
@@ -1808,8 +1976,11 @@ public final OperationFuture labelImag
* Sample code:
*
*
{@code
- * // 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()
@@ -1835,8 +2006,11 @@ public final UnaryCallable labelImageCallable() {
* Sample code:
*
*
{@code
- * // 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();
@@ -1871,8 +2045,11 @@ public final OperationFuture labelVide
* Sample code:
*
*
{@code
- * // 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();
@@ -1907,8 +2084,11 @@ public final OperationFuture labelVide
* Sample code:
*
*
{@code
- * // 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()
@@ -1935,8 +2115,11 @@ public final OperationFuture labelVide
* Sample code:
*
*
{@code
- * // 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()
@@ -1963,8 +2146,11 @@ public final OperationFuture labelVide
* Sample code:
*
*
{@code
- * // 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()
@@ -1990,8 +2176,11 @@ public final UnaryCallable labelVideoCallable() {
* Sample code:
*
*
{@code
- * // 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();
@@ -2026,8 +2215,11 @@ public final OperationFuture labelText
* Sample code:
*
*
{@code
- * // 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();
@@ -2062,8 +2254,11 @@ public final OperationFuture labelText
* Sample code:
*
*
{@code
- * // 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()
@@ -2090,8 +2285,11 @@ public final OperationFuture labelText
* Sample code:
*
*
{@code
- * // 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()
@@ -2118,8 +2316,11 @@ public final OperationFuture labelText
* Sample code:
*
*
{@code
- * // 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()
@@ -2144,8 +2345,11 @@ public final UnaryCallable labelTextCallable() {
* Sample code:
*
*
{@code
- * // 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]");
@@ -2178,8 +2382,11 @@ public final Example getExample(ExampleName name, String filter) {
* Sample code:
*
*
{@code
- * // 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();
@@ -2209,8 +2416,11 @@ public final Example getExample(String name, String filter) {
* Sample code:
*
*
{@code
- * // 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()
@@ -2237,8 +2447,11 @@ public final Example getExample(GetExampleRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -2265,8 +2478,11 @@ public final UnaryCallable getExampleCallable() {
* Sample code:
*
*
{@code
- * // 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]");
@@ -2299,8 +2515,11 @@ public final ListExamplesPagedResponse listExamples(AnnotatedDatasetName parent,
* Sample code:
*
*
{@code
- * // 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();
@@ -2330,8 +2549,11 @@ public final ListExamplesPagedResponse listExamples(String parent, String filter
* Sample code:
*
*
{@code
- * // 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()
@@ -2362,8 +2584,11 @@ public final ListExamplesPagedResponse listExamples(ListExamplesRequest request)
* Sample code:
*
*
{@code
- * // 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()
@@ -2395,8 +2620,11 @@ public final ListExamplesPagedResponse listExamples(ListExamplesRequest request)
* Sample code:
*
*
{@code
- * // 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()
@@ -2434,8 +2662,11 @@ public final UnaryCallable listExampl
* Sample code:
*
*
{@code
- * // 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();
@@ -2467,8 +2698,11 @@ public final AnnotationSpecSet createAnnotationSpecSet(
* Sample code:
*
*
{@code
- * // 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();
@@ -2500,8 +2734,11 @@ public final AnnotationSpecSet createAnnotationSpecSet(
* Sample code:
*
*
{@code
- * // 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()
@@ -2526,8 +2763,11 @@ public final AnnotationSpecSet createAnnotationSpecSet(CreateAnnotationSpecSetRe
* Sample code:
*
*
{@code
- * // 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()
@@ -2553,8 +2793,11 @@ public final AnnotationSpecSet createAnnotationSpecSet(CreateAnnotationSpecSetRe
* Sample code:
*
*
{@code
- * // 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);
@@ -2580,8 +2823,11 @@ public final AnnotationSpecSet getAnnotationSpecSet(AnnotationSpecSetName name)
* Sample code:
*
*
{@code
- * // 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);
@@ -2605,8 +2851,11 @@ public final AnnotationSpecSet getAnnotationSpecSet(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -2630,8 +2879,11 @@ public final AnnotationSpecSet getAnnotationSpecSet(GetAnnotationSpecSetRequest
* Sample code:
*
*
{@code
- * // 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()
@@ -2656,8 +2908,11 @@ public final AnnotationSpecSet getAnnotationSpecSet(GetAnnotationSpecSetRequest
* Sample code:
*
*
{@code
- * // 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";
@@ -2689,8 +2944,11 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
* Sample code:
*
*
{@code
- * // 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";
@@ -2719,8 +2977,11 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
* Sample code:
*
*
{@code
- * // 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()
@@ -2751,8 +3012,11 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
* Sample code:
*
*
{@code
- * // 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()
@@ -2782,8 +3046,11 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
* Sample code:
*
*
{@code
- * // 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()
@@ -2820,8 +3087,11 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
* Sample code:
*
*
{@code
- * // 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);
@@ -2847,8 +3117,11 @@ public final void deleteAnnotationSpecSet(AnnotationSpecSetName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -2872,8 +3145,11 @@ public final void deleteAnnotationSpecSet(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -2897,8 +3173,11 @@ public final void deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request
* Sample code:
*
*
{@code
- * // 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()
@@ -2923,8 +3202,11 @@ public final void deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request
* Sample code:
*
*
{@code
- * // 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();
@@ -2954,8 +3236,11 @@ public final OperationFuture createInstr
* Sample code:
*
*
{@code
- * // 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();
@@ -2982,8 +3267,11 @@ public final OperationFuture createInstr
* Sample code:
*
*
{@code
- * // 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()
@@ -3009,8 +3297,11 @@ public final OperationFuture createInstr
* Sample code:
*
*
{@code
- * // 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()
@@ -3036,8 +3327,11 @@ public final OperationFuture createInstr
* Sample code:
*
*
{@code
- * // 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()
@@ -3062,8 +3356,11 @@ public final UnaryCallable createInstructio
* Sample code:
*
*
{@code
- * // 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);
@@ -3087,8 +3384,11 @@ public final Instruction getInstruction(InstructionName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -3111,8 +3411,11 @@ public final Instruction getInstruction(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -3136,8 +3439,11 @@ public final Instruction getInstruction(GetInstructionRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -3161,8 +3467,11 @@ public final UnaryCallable getInstructionCal
* Sample code:
*
*
{@code
- * // 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";
@@ -3193,8 +3502,11 @@ public final ListInstructionsPagedResponse listInstructions(ProjectName parent,
* Sample code:
*
*
{@code
- * // 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";
@@ -3222,8 +3534,11 @@ public final ListInstructionsPagedResponse listInstructions(String parent, Strin
* Sample code:
*
*
{@code
- * // 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()
@@ -3252,8 +3567,11 @@ public final ListInstructionsPagedResponse listInstructions(ListInstructionsRequ
* Sample code:
*
*
{@code
- * // 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()
@@ -3283,8 +3601,11 @@ public final ListInstructionsPagedResponse listInstructions(ListInstructionsRequ
* Sample code:
*
*
{@code
- * // 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()
@@ -3321,8 +3642,11 @@ public final ListInstructionsPagedResponse listInstructions(ListInstructionsRequ
* Sample code:
*
*
{@code
- * // 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);
@@ -3348,8 +3672,11 @@ public final void deleteInstruction(InstructionName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -3372,8 +3699,11 @@ public final void deleteInstruction(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -3397,8 +3727,11 @@ public final void deleteInstruction(DeleteInstructionRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -3423,8 +3756,11 @@ public final UnaryCallable deleteInstructionCal
* Sample code:
*
*
{@code
- * // 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);
@@ -3449,8 +3785,11 @@ public final Evaluation getEvaluation(EvaluationName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -3474,8 +3813,11 @@ public final Evaluation getEvaluation(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -3500,8 +3842,11 @@ public final Evaluation getEvaluation(GetEvaluationRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -3525,8 +3870,11 @@ public final UnaryCallable getEvaluationCallab
* Sample code:
*
*
{@code
- * // 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";
@@ -3590,8 +3938,11 @@ public final SearchEvaluationsPagedResponse searchEvaluations(
* Sample code:
*
*
{@code
- * // 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";
@@ -3651,8 +4002,11 @@ public final SearchEvaluationsPagedResponse searchEvaluations(String parent, Str
* Sample code:
*
*
{@code
- * // 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()
@@ -3681,8 +4035,11 @@ public final SearchEvaluationsPagedResponse searchEvaluations(SearchEvaluationsR
* Sample code:
*
*
{@code
- * // 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()
@@ -3712,8 +4069,11 @@ public final SearchEvaluationsPagedResponse searchEvaluations(SearchEvaluationsR
* Sample code:
*
*
{@code
- * // 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()
@@ -3752,8 +4112,11 @@ public final SearchEvaluationsPagedResponse searchEvaluations(SearchEvaluationsR
* Sample code:
*
*
{@code
- * // 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 :
@@ -3786,8 +4149,11 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(
* Sample code:
*
*
{@code
- * // 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 :
@@ -3817,8 +4183,11 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(Stri
* Sample code:
*
*
{@code
- * // 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()
@@ -3850,8 +4219,11 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(
* Sample code:
*
*
{@code
- * // 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()
@@ -3882,8 +4254,11 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(
* Sample code:
*
*
{@code
- * // 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()
@@ -3920,8 +4295,11 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(
* Sample code:
*
*
{@code
- * // 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();
@@ -3950,8 +4328,11 @@ public final EvaluationJob createEvaluationJob(ProjectName parent, EvaluationJob
* Sample code:
*
*
{@code
- * // 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();
@@ -3977,8 +4358,11 @@ public final EvaluationJob createEvaluationJob(String parent, EvaluationJob job)
* Sample code:
*
*
{@code
- * // 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()
@@ -4003,8 +4387,11 @@ public final EvaluationJob createEvaluationJob(CreateEvaluationJobRequest reques
* Sample code:
*
*
{@code
- * // 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()
@@ -4035,8 +4422,11 @@ public final EvaluationJob createEvaluationJob(CreateEvaluationJobRequest reques
* Sample code:
*
*
{@code
- * // 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();
@@ -4078,8 +4468,11 @@ public final EvaluationJob updateEvaluationJob(
* Sample code:
*
*
{@code
- * // 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()
@@ -4109,8 +4502,11 @@ public final EvaluationJob updateEvaluationJob(UpdateEvaluationJobRequest reques
* Sample code:
*
*
{@code
- * // 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()
@@ -4136,8 +4532,11 @@ public final EvaluationJob updateEvaluationJob(UpdateEvaluationJobRequest reques
* Sample code:
*
*
{@code
- * // 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);
@@ -4161,8 +4560,11 @@ public final EvaluationJob getEvaluationJob(EvaluationJobName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -4185,8 +4587,11 @@ public final EvaluationJob getEvaluationJob(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -4210,8 +4615,11 @@ public final EvaluationJob getEvaluationJob(GetEvaluationJobRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -4236,8 +4644,11 @@ public final UnaryCallable getEvaluation
* Sample code:
*
*
{@code
- * // 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);
@@ -4264,8 +4675,11 @@ public final void pauseEvaluationJob(EvaluationJobName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -4290,8 +4704,11 @@ public final void pauseEvaluationJob(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -4316,8 +4733,11 @@ public final void pauseEvaluationJob(PauseEvaluationJobRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -4342,8 +4762,11 @@ public final UnaryCallable pauseEvaluationJobC
* Sample code:
*
*
{@code
- * // 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);
@@ -4370,8 +4793,11 @@ public final void resumeEvaluationJob(EvaluationJobName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -4396,8 +4822,11 @@ public final void resumeEvaluationJob(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -4422,8 +4851,11 @@ public final void resumeEvaluationJob(ResumeEvaluationJobRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -4447,8 +4879,11 @@ public final UnaryCallable resumeEvaluationJo
* Sample code:
*
*
{@code
- * // 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);
@@ -4474,8 +4909,11 @@ public final void deleteEvaluationJob(EvaluationJobName name) {
* Sample code:
*
*
{@code
- * // 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);
@@ -4499,8 +4937,11 @@ public final void deleteEvaluationJob(String name) {
* Sample code:
*
*
{@code
- * // 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()
@@ -4524,8 +4965,11 @@ public final void deleteEvaluationJob(DeleteEvaluationJobRequest request) {
* Sample code:
*
*
{@code
- * // 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()
@@ -4549,8 +4993,11 @@ public final UnaryCallable deleteEvaluationJo
* Sample code:
*
*
{@code
- * // 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";
@@ -4591,8 +5038,11 @@ public final ListEvaluationJobsPagedResponse listEvaluationJobs(
* Sample code:
*
*
{@code
- * // 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";
@@ -4629,8 +5079,11 @@ public final ListEvaluationJobsPagedResponse listEvaluationJobs(String parent, S
* Sample code:
*
*
{@code
- * // 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()
@@ -4661,8 +5114,11 @@ public final ListEvaluationJobsPagedResponse listEvaluationJobs(
* Sample code:
*
*
{@code
- * // 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()
@@ -4692,8 +5148,11 @@ public final ListEvaluationJobsPagedResponse listEvaluationJobs(
* Sample code:
*
*
{@code
- * // 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/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java
index 195e96a7..9c38582b 100644
--- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java
+++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java
@@ -63,8 +63,11 @@
* For example, to set the total timeout of createDataset to 30 seconds:
*
*
{@code
- * // 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/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java
index 2a0c21dd..7a1cbf01 100644
--- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java
+++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java
@@ -24,8 +24,11 @@
* Sample for DataLabelingServiceClient:
*
*
{@code
- * // 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/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java
index 07b6caa0..b6af1815 100644
--- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java
+++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java
@@ -138,8 +138,11 @@
* For example, to set the total timeout of createDataset to 30 seconds:
*
*
{@code
- * // 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
diff --git a/grpc-google-cloud-datalabeling-v1beta1/pom.xml b/grpc-google-cloud-datalabeling-v1beta1/pom.xml
index e58d5cfe..cd4a66ab 100644
--- a/grpc-google-cloud-datalabeling-v1beta1/pom.xml
+++ b/grpc-google-cloud-datalabeling-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-datalabeling-v1beta1
- 0.88.3
+ 0.88.4
grpc-google-cloud-datalabeling-v1beta1
GRPC library for grpc-google-cloud-datalabeling-v1beta1
com.google.cloud
google-cloud-datalabeling-parent
- 0.123.3
+ 0.123.4
diff --git a/pom.xml b/pom.xml
index 27cfca97..600382e8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-datalabeling-parent
pom
- 0.123.3
+ 0.123.4
Google Cloud Data Labeling Parent
https://github.com/googleapis/java-datalabeling
@@ -61,23 +61,23 @@
com.google.api.grpc
proto-google-cloud-datalabeling-v1beta1
- 0.88.3
+ 0.88.4
com.google.api.grpc
grpc-google-cloud-datalabeling-v1beta1
- 0.88.3
+ 0.88.4
com.google.cloud
google-cloud-datalabeling
- 0.123.3
+ 0.123.4
com.google.cloud
google-cloud-shared-dependencies
- 3.0.1
+ 3.0.2
pom
import
@@ -120,7 +120,7 @@
org.apache.maven.plugins
maven-project-info-reports-plugin
- 3.4.0
+ 3.4.1
@@ -147,7 +147,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.4.0
+ 3.4.1
html
diff --git a/proto-google-cloud-datalabeling-v1beta1/pom.xml b/proto-google-cloud-datalabeling-v1beta1/pom.xml
index 8dc374d1..27211c71 100644
--- a/proto-google-cloud-datalabeling-v1beta1/pom.xml
+++ b/proto-google-cloud-datalabeling-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-datalabeling-v1beta1
- 0.88.3
+ 0.88.4
proto-google-cloud-datalabeling-v1beta1
PROTO library for proto-google-cloud-datalabeling-v1beta1
com.google.cloud
google-cloud-datalabeling-parent
- 0.123.3
+ 0.123.4
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java
index 8f8efc12..86969229 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java
@@ -130,148 +130,144 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n2google/cloud/datalabeling/v1beta1/anno"
+ "tation.proto\022!google.cloud.datalabeling."
- + "v1beta1\032\034google/api/annotations.proto\032\031g"
- + "oogle/api/resource.proto\032;google/cloud/d"
- + "atalabeling/v1beta1/annotation_spec_set."
- + "proto\032\036google/protobuf/duration.proto\"\342\002"
- + "\n\nAnnotation\022\014\n\004name\030\001 \001(\t\022N\n\021annotation"
- + "_source\030\002 \001(\01623.google.cloud.datalabelin"
- + "g.v1beta1.AnnotationSource\022L\n\020annotation"
- + "_value\030\003 \001(\01322.google.cloud.datalabeling"
- + ".v1beta1.AnnotationValue\022R\n\023annotation_m"
- + "etadata\030\004 \001(\01325.google.cloud.datalabelin"
- + "g.v1beta1.AnnotationMetadata\022T\n\024annotati"
- + "on_sentiment\030\006 \001(\01626.google.cloud.datala"
- + "beling.v1beta1.AnnotationSentiment\"\321\007\n\017A"
- + "nnotationValue\022k\n\037image_classification_a"
- + "nnotation\030\001 \001(\0132@.google.cloud.datalabel"
- + "ing.v1beta1.ImageClassificationAnnotatio"
- + "nH\000\022h\n\036image_bounding_poly_annotation\030\002 "
- + "\001(\0132>.google.cloud.datalabeling.v1beta1."
- + "ImageBoundingPolyAnnotationH\000\022_\n\031image_p"
- + "olyline_annotation\030\010 \001(\0132:.google.cloud."
- + "datalabeling.v1beta1.ImagePolylineAnnota"
- + "tionH\000\022g\n\035image_segmentation_annotation\030"
- + "\t \001(\0132>.google.cloud.datalabeling.v1beta"
- + "1.ImageSegmentationAnnotationH\000\022i\n\036text_"
- + "classification_annotation\030\003 \001(\0132?.google"
- + ".cloud.datalabeling.v1beta1.TextClassifi"
- + "cationAnnotationH\000\022n\n!text_entity_extrac"
- + "tion_annotation\030\n \001(\0132A.google.cloud.dat"
- + "alabeling.v1beta1.TextEntityExtractionAn"
- + "notationH\000\022k\n\037video_classification_annot"
- + "ation\030\004 \001(\0132@.google.cloud.datalabeling."
- + "v1beta1.VideoClassificationAnnotationH\000\022"
- + "l\n video_object_tracking_annotation\030\005 \001("
- + "\0132@.google.cloud.datalabeling.v1beta1.Vi"
- + "deoObjectTrackingAnnotationH\000\022Y\n\026video_e"
- + "vent_annotation\030\006 \001(\01327.google.cloud.dat"
- + "alabeling.v1beta1.VideoEventAnnotationH\000"
- + "B\014\n\nvalue_type\"k\n\035ImageClassificationAnn"
- + "otation\022J\n\017annotation_spec\030\001 \001(\01321.googl"
- + "e.cloud.datalabeling.v1beta1.AnnotationS"
- + "pec\"\036\n\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020N"
- + "ormalizedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"K\n"
- + "\014BoundingPoly\022;\n\010vertices\030\001 \003(\0132).google"
- + ".cloud.datalabeling.v1beta1.Vertex\"j\n\026No"
- + "rmalizedBoundingPoly\022P\n\023normalized_verti"
- + "ces\030\001 \003(\01323.google.cloud.datalabeling.v1"
- + "beta1.NormalizedVertex\"\242\002\n\033ImageBounding"
- + "PolyAnnotation\022H\n\rbounding_poly\030\002 \001(\0132/."
- + "google.cloud.datalabeling.v1beta1.Boundi"
- + "ngPolyH\000\022]\n\030normalized_bounding_poly\030\003 \001"
- + "(\01329.google.cloud.datalabeling.v1beta1.N"
- + "ormalizedBoundingPolyH\000\022J\n\017annotation_sp"
- + "ec\030\001 \001(\01321.google.cloud.datalabeling.v1b"
- + "eta1.AnnotationSpecB\016\n\014bounded_area\"G\n\010P"
- + "olyline\022;\n\010vertices\030\001 \003(\0132).google.cloud"
- + ".datalabeling.v1beta1.Vertex\"f\n\022Normaliz"
- + "edPolyline\022P\n\023normalized_vertices\030\001 \003(\0132"
- + "3.google.cloud.datalabeling.v1beta1.Norm"
- + "alizedVertex\"\204\002\n\027ImagePolylineAnnotation"
- + "\022?\n\010polyline\030\002 \001(\0132+.google.cloud.datala"
- + "beling.v1beta1.PolylineH\000\022T\n\023normalized_"
- + "polyline\030\003 \001(\01325.google.cloud.datalabeli"
- + "ng.v1beta1.NormalizedPolylineH\000\022J\n\017annot"
- + "ation_spec\030\001 \001(\01321.google.cloud.datalabe"
- + "ling.v1beta1.AnnotationSpecB\006\n\004poly\"\242\002\n\033"
- + "ImageSegmentationAnnotation\022o\n\021annotatio"
- + "n_colors\030\001 \003(\0132T.google.cloud.datalabeli"
- + "ng.v1beta1.ImageSegmentationAnnotation.A"
- + "nnotationColorsEntry\022\021\n\tmime_type\030\002 \001(\t\022"
- + "\023\n\013image_bytes\030\003 \001(\014\032j\n\025AnnotationColors"
- + "Entry\022\013\n\003key\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.goog"
- + "le.cloud.datalabeling.v1beta1.Annotation"
- + "Spec:\0028\001\"j\n\034TextClassificationAnnotation"
- + "\022J\n\017annotation_spec\030\001 \001(\01321.google.cloud"
- + ".datalabeling.v1beta1.AnnotationSpec\"\276\001\n"
- + "\036TextEntityExtractionAnnotation\022J\n\017annot"
- + "ation_spec\030\001 \001(\01321.google.cloud.datalabe"
- + "ling.v1beta1.AnnotationSpec\022P\n\022sequentia"
- + "l_segment\030\002 \001(\01324.google.cloud.datalabel"
- + "ing.v1beta1.SequentialSegment\"/\n\021Sequent"
- + "ialSegment\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"w"
- + "\n\013TimeSegment\0224\n\021start_time_offset\030\001 \001(\013"
- + "2\031.google.protobuf.Duration\0222\n\017end_time_"
- + "offset\030\002 \001(\0132\031.google.protobuf.Duration\""
- + "\261\001\n\035VideoClassificationAnnotation\022D\n\014tim"
- + "e_segment\030\001 \001(\0132..google.cloud.datalabel"
- + "ing.v1beta1.TimeSegment\022J\n\017annotation_sp"
- + "ec\030\002 \001(\01321.google.cloud.datalabeling.v1b"
- + "eta1.AnnotationSpec\"\376\001\n\023ObjectTrackingFr"
- + "ame\022H\n\rbounding_poly\030\001 \001(\0132/.google.clou"
- + "d.datalabeling.v1beta1.BoundingPolyH\000\022]\n"
- + "\030normalized_bounding_poly\030\002 \001(\01329.google"
- + ".cloud.datalabeling.v1beta1.NormalizedBo"
- + "undingPolyH\000\022.\n\013time_offset\030\003 \001(\0132\031.goog"
- + "le.protobuf.DurationB\016\n\014bounded_area\"\211\002\n"
- + "\035VideoObjectTrackingAnnotation\022J\n\017annota"
+ + "v1beta1\032;google/cloud/datalabeling/v1bet"
+ + "a1/annotation_spec_set.proto\032\036google/pro"
+ + "tobuf/duration.proto\"\342\002\n\nAnnotation\022\014\n\004n"
+ + "ame\030\001 \001(\t\022N\n\021annotation_source\030\002 \001(\01623.g"
+ + "oogle.cloud.datalabeling.v1beta1.Annotat"
+ + "ionSource\022L\n\020annotation_value\030\003 \001(\01322.go"
+ + "ogle.cloud.datalabeling.v1beta1.Annotati"
+ + "onValue\022R\n\023annotation_metadata\030\004 \001(\01325.g"
+ + "oogle.cloud.datalabeling.v1beta1.Annotat"
+ + "ionMetadata\022T\n\024annotation_sentiment\030\006 \001("
+ + "\01626.google.cloud.datalabeling.v1beta1.An"
+ + "notationSentiment\"\321\007\n\017AnnotationValue\022k\n"
+ + "\037image_classification_annotation\030\001 \001(\0132@"
+ + ".google.cloud.datalabeling.v1beta1.Image"
+ + "ClassificationAnnotationH\000\022h\n\036image_boun"
+ + "ding_poly_annotation\030\002 \001(\0132>.google.clou"
+ + "d.datalabeling.v1beta1.ImageBoundingPoly"
+ + "AnnotationH\000\022_\n\031image_polyline_annotatio"
+ + "n\030\010 \001(\0132:.google.cloud.datalabeling.v1be"
+ + "ta1.ImagePolylineAnnotationH\000\022g\n\035image_s"
+ + "egmentation_annotation\030\t \001(\0132>.google.cl"
+ + "oud.datalabeling.v1beta1.ImageSegmentati"
+ + "onAnnotationH\000\022i\n\036text_classification_an"
+ + "notation\030\003 \001(\0132?.google.cloud.datalabeli"
+ + "ng.v1beta1.TextClassificationAnnotationH"
+ + "\000\022n\n!text_entity_extraction_annotation\030\n"
+ + " \001(\0132A.google.cloud.datalabeling.v1beta1"
+ + ".TextEntityExtractionAnnotationH\000\022k\n\037vid"
+ + "eo_classification_annotation\030\004 \001(\0132@.goo"
+ + "gle.cloud.datalabeling.v1beta1.VideoClas"
+ + "sificationAnnotationH\000\022l\n video_object_t"
+ + "racking_annotation\030\005 \001(\0132@.google.cloud."
+ + "datalabeling.v1beta1.VideoObjectTracking"
+ + "AnnotationH\000\022Y\n\026video_event_annotation\030\006"
+ + " \001(\01327.google.cloud.datalabeling.v1beta1"
+ + ".VideoEventAnnotationH\000B\014\n\nvalue_type\"k\n"
+ + "\035ImageClassificationAnnotation\022J\n\017annota"
+ "tion_spec\030\001 \001(\01321.google.cloud.datalabel"
- + "ing.v1beta1.AnnotationSpec\022D\n\014time_segme"
- + "nt\030\002 \001(\0132..google.cloud.datalabeling.v1b"
- + "eta1.TimeSegment\022V\n\026object_tracking_fram"
- + "es\030\003 \003(\01326.google.cloud.datalabeling.v1b"
- + "eta1.ObjectTrackingFrame\"\250\001\n\024VideoEventA"
- + "nnotation\022J\n\017annotation_spec\030\001 \001(\01321.goo"
- + "gle.cloud.datalabeling.v1beta1.Annotatio"
- + "nSpec\022D\n\014time_segment\030\002 \001(\0132..google.clo"
- + "ud.datalabeling.v1beta1.TimeSegment\"d\n\022A"
- + "nnotationMetadata\022N\n\021operator_metadata\030\002"
- + " \001(\01323.google.cloud.datalabeling.v1beta1"
- + ".OperatorMetadata\"]\n\020OperatorMetadata\022\r\n"
- + "\005score\030\001 \001(\002\022\023\n\013total_votes\030\002 \001(\005\022\023\n\013lab"
- + "el_votes\030\003 \001(\005\022\020\n\010comments\030\004 \003(\t*C\n\020Anno"
- + "tationSource\022!\n\035ANNOTATION_SOURCE_UNSPEC"
- + "IFIED\020\000\022\014\n\010OPERATOR\020\003*W\n\023AnnotationSenti"
- + "ment\022$\n ANNOTATION_SENTIMENT_UNSPECIFIED"
- + "\020\000\022\014\n\010NEGATIVE\020\001\022\014\n\010POSITIVE\020\002*\221\004\n\016Annot"
- + "ationType\022\037\n\033ANNOTATION_TYPE_UNSPECIFIED"
- + "\020\000\022#\n\037IMAGE_CLASSIFICATION_ANNOTATION\020\001\022"
- + "!\n\035IMAGE_BOUNDING_BOX_ANNOTATION\020\002\022*\n&IM"
- + "AGE_ORIENTED_BOUNDING_BOX_ANNOTATION\020\r\022\""
- + "\n\036IMAGE_BOUNDING_POLY_ANNOTATION\020\n\022\035\n\031IM"
- + "AGE_POLYLINE_ANNOTATION\020\013\022!\n\035IMAGE_SEGME"
- + "NTATION_ANNOTATION\020\014\022)\n%VIDEO_SHOTS_CLAS"
- + "SIFICATION_ANNOTATION\020\003\022$\n VIDEO_OBJECT_"
- + "TRACKING_ANNOTATION\020\004\022%\n!VIDEO_OBJECT_DE"
- + "TECTION_ANNOTATION\020\005\022\032\n\026VIDEO_EVENT_ANNO"
- + "TATION\020\006\022\"\n\036TEXT_CLASSIFICATION_ANNOTATI"
- + "ON\020\010\022%\n!TEXT_ENTITY_EXTRACTION_ANNOTATIO"
- + "N\020\t\022%\n!GENERAL_CLASSIFICATION_ANNOTATION"
- + "\020\016B\347\001\n%com.google.cloud.datalabeling.v1b"
- + "eta1P\001ZMgoogle.golang.org/genproto/googl"
- + "eapis/cloud/datalabeling/v1beta1;datalab"
- + "eling\252\002!Google.Cloud.DataLabeling.V1Beta"
- + "1\312\002!Google\\Cloud\\DataLabeling\\V1beta1\352\002$"
- + "Google::Cloud::DataLabeling::V1beta1b\006pr"
- + "oto3"
+ + "ing.v1beta1.AnnotationSpec\"\036\n\006Vertex\022\t\n\001"
+ + "x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVertex\022\t"
+ + "\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"K\n\014BoundingPoly\022;\n\010"
+ + "vertices\030\001 \003(\0132).google.cloud.datalabeli"
+ + "ng.v1beta1.Vertex\"j\n\026NormalizedBoundingP"
+ + "oly\022P\n\023normalized_vertices\030\001 \003(\01323.googl"
+ + "e.cloud.datalabeling.v1beta1.NormalizedV"
+ + "ertex\"\242\002\n\033ImageBoundingPolyAnnotation\022H\n"
+ + "\rbounding_poly\030\002 \001(\0132/.google.cloud.data"
+ + "labeling.v1beta1.BoundingPolyH\000\022]\n\030norma"
+ + "lized_bounding_poly\030\003 \001(\01329.google.cloud"
+ + ".datalabeling.v1beta1.NormalizedBounding"
+ + "PolyH\000\022J\n\017annotation_spec\030\001 \001(\01321.google"
+ + ".cloud.datalabeling.v1beta1.AnnotationSp"
+ + "ecB\016\n\014bounded_area\"G\n\010Polyline\022;\n\010vertic"
+ + "es\030\001 \003(\0132).google.cloud.datalabeling.v1b"
+ + "eta1.Vertex\"f\n\022NormalizedPolyline\022P\n\023nor"
+ + "malized_vertices\030\001 \003(\01323.google.cloud.da"
+ + "talabeling.v1beta1.NormalizedVertex\"\204\002\n\027"
+ + "ImagePolylineAnnotation\022?\n\010polyline\030\002 \001("
+ + "\0132+.google.cloud.datalabeling.v1beta1.Po"
+ + "lylineH\000\022T\n\023normalized_polyline\030\003 \001(\01325."
+ + "google.cloud.datalabeling.v1beta1.Normal"
+ + "izedPolylineH\000\022J\n\017annotation_spec\030\001 \001(\0132"
+ + "1.google.cloud.datalabeling.v1beta1.Anno"
+ + "tationSpecB\006\n\004poly\"\242\002\n\033ImageSegmentation"
+ + "Annotation\022o\n\021annotation_colors\030\001 \003(\0132T."
+ + "google.cloud.datalabeling.v1beta1.ImageS"
+ + "egmentationAnnotation.AnnotationColorsEn"
+ + "try\022\021\n\tmime_type\030\002 \001(\t\022\023\n\013image_bytes\030\003 "
+ + "\001(\014\032j\n\025AnnotationColorsEntry\022\013\n\003key\030\001 \001("
+ + "\t\022@\n\005value\030\002 \001(\01321.google.cloud.datalabe"
+ + "ling.v1beta1.AnnotationSpec:\0028\001\"j\n\034TextC"
+ + "lassificationAnnotation\022J\n\017annotation_sp"
+ + "ec\030\001 \001(\01321.google.cloud.datalabeling.v1b"
+ + "eta1.AnnotationSpec\"\276\001\n\036TextEntityExtrac"
+ + "tionAnnotation\022J\n\017annotation_spec\030\001 \001(\0132"
+ + "1.google.cloud.datalabeling.v1beta1.Anno"
+ + "tationSpec\022P\n\022sequential_segment\030\002 \001(\01324"
+ + ".google.cloud.datalabeling.v1beta1.Seque"
+ + "ntialSegment\"/\n\021SequentialSegment\022\r\n\005sta"
+ + "rt\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"w\n\013TimeSegment\0224\n\021"
+ + "start_time_offset\030\001 \001(\0132\031.google.protobu"
+ + "f.Duration\0222\n\017end_time_offset\030\002 \001(\0132\031.go"
+ + "ogle.protobuf.Duration\"\261\001\n\035VideoClassifi"
+ + "cationAnnotation\022D\n\014time_segment\030\001 \001(\0132."
+ + ".google.cloud.datalabeling.v1beta1.TimeS"
+ + "egment\022J\n\017annotation_spec\030\002 \001(\01321.google"
+ + ".cloud.datalabeling.v1beta1.AnnotationSp"
+ + "ec\"\376\001\n\023ObjectTrackingFrame\022H\n\rbounding_p"
+ + "oly\030\001 \001(\0132/.google.cloud.datalabeling.v1"
+ + "beta1.BoundingPolyH\000\022]\n\030normalized_bound"
+ + "ing_poly\030\002 \001(\01329.google.cloud.datalabeli"
+ + "ng.v1beta1.NormalizedBoundingPolyH\000\022.\n\013t"
+ + "ime_offset\030\003 \001(\0132\031.google.protobuf.Durat"
+ + "ionB\016\n\014bounded_area\"\211\002\n\035VideoObjectTrack"
+ + "ingAnnotation\022J\n\017annotation_spec\030\001 \001(\01321"
+ + ".google.cloud.datalabeling.v1beta1.Annot"
+ + "ationSpec\022D\n\014time_segment\030\002 \001(\0132..google"
+ + ".cloud.datalabeling.v1beta1.TimeSegment\022"
+ + "V\n\026object_tracking_frames\030\003 \003(\01326.google"
+ + ".cloud.datalabeling.v1beta1.ObjectTracki"
+ + "ngFrame\"\250\001\n\024VideoEventAnnotation\022J\n\017anno"
+ + "tation_spec\030\001 \001(\01321.google.cloud.datalab"
+ + "eling.v1beta1.AnnotationSpec\022D\n\014time_seg"
+ + "ment\030\002 \001(\0132..google.cloud.datalabeling.v"
+ + "1beta1.TimeSegment\"d\n\022AnnotationMetadata"
+ + "\022N\n\021operator_metadata\030\002 \001(\01323.google.clo"
+ + "ud.datalabeling.v1beta1.OperatorMetadata"
+ + "\"]\n\020OperatorMetadata\022\r\n\005score\030\001 \001(\002\022\023\n\013t"
+ + "otal_votes\030\002 \001(\005\022\023\n\013label_votes\030\003 \001(\005\022\020\n"
+ + "\010comments\030\004 \003(\t*C\n\020AnnotationSource\022!\n\035A"
+ + "NNOTATION_SOURCE_UNSPECIFIED\020\000\022\014\n\010OPERAT"
+ + "OR\020\003*W\n\023AnnotationSentiment\022$\n ANNOTATIO"
+ + "N_SENTIMENT_UNSPECIFIED\020\000\022\014\n\010NEGATIVE\020\001\022"
+ + "\014\n\010POSITIVE\020\002*\221\004\n\016AnnotationType\022\037\n\033ANNO"
+ + "TATION_TYPE_UNSPECIFIED\020\000\022#\n\037IMAGE_CLASS"
+ + "IFICATION_ANNOTATION\020\001\022!\n\035IMAGE_BOUNDING"
+ + "_BOX_ANNOTATION\020\002\022*\n&IMAGE_ORIENTED_BOUN"
+ + "DING_BOX_ANNOTATION\020\r\022\"\n\036IMAGE_BOUNDING_"
+ + "POLY_ANNOTATION\020\n\022\035\n\031IMAGE_POLYLINE_ANNO"
+ + "TATION\020\013\022!\n\035IMAGE_SEGMENTATION_ANNOTATIO"
+ + "N\020\014\022)\n%VIDEO_SHOTS_CLASSIFICATION_ANNOTA"
+ + "TION\020\003\022$\n VIDEO_OBJECT_TRACKING_ANNOTATI"
+ + "ON\020\004\022%\n!VIDEO_OBJECT_DETECTION_ANNOTATIO"
+ + "N\020\005\022\032\n\026VIDEO_EVENT_ANNOTATION\020\006\022\"\n\036TEXT_"
+ + "CLASSIFICATION_ANNOTATION\020\010\022%\n!TEXT_ENTI"
+ + "TY_EXTRACTION_ANNOTATION\020\t\022%\n!GENERAL_CL"
+ + "ASSIFICATION_ANNOTATION\020\016B\347\001\n%com.google"
+ + ".cloud.datalabeling.v1beta1P\001ZMgoogle.go"
+ + "lang.org/genproto/googleapis/cloud/datal"
+ + "abeling/v1beta1;datalabeling\252\002!Google.Cl"
+ + "oud.DataLabeling.V1Beta1\312\002!Google\\Cloud\\"
+ + "DataLabeling\\V1beta1\352\002$Google::Cloud::Da"
+ + "taLabeling::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
- com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
});
@@ -474,8 +470,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Score", "TotalVotes", "LabelVotes", "Comments",
});
- com.google.api.AnnotationsProto.getDescriptor();
- com.google.api.ResourceProto.getDescriptor();
com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
}
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java
index 2ce28ac5..480a532d 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java
@@ -46,29 +46,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n;google/cloud/datalabeling/v1beta1/anno"
+ "tation_spec_set.proto\022!google.cloud.data"
- + "labeling.v1beta1\032\034google/api/annotations"
- + ".proto\032\031google/api/resource.proto\"\246\002\n\021An"
- + "notationSpecSet\022\014\n\004name\030\001 \001(\t\022\024\n\014display"
- + "_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022K\n\020anno"
- + "tation_specs\030\004 \003(\01321.google.cloud.datala"
- + "beling.v1beta1.AnnotationSpec\022\032\n\022blockin"
- + "g_resources\030\005 \003(\t:o\352Al\n-datalabeling.goo"
- + "gleapis.com/AnnotationSpecSet\022;projects/"
- + "{project}/annotationSpecSets/{annotation"
- + "_spec_set}\";\n\016AnnotationSpec\022\024\n\014display_"
- + "name\030\001 \001(\t\022\023\n\013description\030\002 \001(\tB\347\001\n%com."
- + "google.cloud.datalabeling.v1beta1P\001ZMgoo"
- + "gle.golang.org/genproto/googleapis/cloud"
- + "/datalabeling/v1beta1;datalabeling\252\002!Goo"
- + "gle.Cloud.DataLabeling.V1Beta1\312\002!Google\\"
- + "Cloud\\DataLabeling\\V1beta1\352\002$Google::Clo"
- + "ud::DataLabeling::V1beta1b\006proto3"
+ + "labeling.v1beta1\032\031google/api/resource.pr"
+ + "oto\"\246\002\n\021AnnotationSpecSet\022\014\n\004name\030\001 \001(\t\022"
+ + "\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 \001"
+ + "(\t\022K\n\020annotation_specs\030\004 \003(\01321.google.cl"
+ + "oud.datalabeling.v1beta1.AnnotationSpec\022"
+ + "\032\n\022blocking_resources\030\005 \003(\t:o\352Al\n-datala"
+ + "beling.googleapis.com/AnnotationSpecSet\022"
+ + ";projects/{project}/annotationSpecSets/{"
+ + "annotation_spec_set}\";\n\016AnnotationSpec\022\024"
+ + "\n\014display_name\030\001 \001(\t\022\023\n\013description\030\002 \001("
+ + "\tB\347\001\n%com.google.cloud.datalabeling.v1be"
+ + "ta1P\001ZMgoogle.golang.org/genproto/google"
+ + "apis/cloud/datalabeling/v1beta1;datalabe"
+ + "ling\252\002!Google.Cloud.DataLabeling.V1Beta1"
+ + "\312\002!Google\\Cloud\\DataLabeling\\V1beta1\352\002$G"
+ + "oogle::Cloud::DataLabeling::V1beta1b\006pro"
+ + "to3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
});
internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor =
@@ -92,7 +91,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
- com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
}
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java
index f3c23f7e..c2dde5ab 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java
@@ -54,33 +54,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n5google/cloud/datalabeling/v1beta1/data"
+ "_payloads.proto\022!google.cloud.datalabeli"
- + "ng.v1beta1\032\034google/api/annotations.proto"
- + "\032\036google/protobuf/duration.proto\032\037google"
- + "/protobuf/timestamp.proto\"a\n\014ImagePayloa"
- + "d\022\021\n\tmime_type\030\001 \001(\t\022\027\n\017image_thumbnail\030"
- + "\002 \001(\014\022\021\n\timage_uri\030\003 \001(\t\022\022\n\nsigned_uri\030\004"
- + " \001(\t\"#\n\013TextPayload\022\024\n\014text_content\030\001 \001("
- + "\t\"S\n\016VideoThumbnail\022\021\n\tthumbnail\030\001 \001(\014\022."
- + "\n\013time_offset\030\002 \001(\0132\031.google.protobuf.Du"
- + "ration\"\251\001\n\014VideoPayload\022\021\n\tmime_type\030\001 \001"
- + "(\t\022\021\n\tvideo_uri\030\002 \001(\t\022K\n\020video_thumbnail"
- + "s\030\003 \003(\01321.google.cloud.datalabeling.v1be"
- + "ta1.VideoThumbnail\022\022\n\nframe_rate\030\004 \001(\002\022\022"
- + "\n\nsigned_uri\030\005 \001(\tB\347\001\n%com.google.cloud."
- + "datalabeling.v1beta1P\001ZMgoogle.golang.or"
- + "g/genproto/googleapis/cloud/datalabeling"
- + "/v1beta1;datalabeling\252\002!Google.Cloud.Dat"
- + "aLabeling.V1Beta1\312\002!Google\\Cloud\\DataLab"
- + "eling\\V1beta1\352\002$Google::Cloud::DataLabel"
- + "ing::V1beta1b\006proto3"
+ + "ng.v1beta1\032\036google/protobuf/duration.pro"
+ + "to\"a\n\014ImagePayload\022\021\n\tmime_type\030\001 \001(\t\022\027\n"
+ + "\017image_thumbnail\030\002 \001(\014\022\021\n\timage_uri\030\003 \001("
+ + "\t\022\022\n\nsigned_uri\030\004 \001(\t\"#\n\013TextPayload\022\024\n\014"
+ + "text_content\030\001 \001(\t\"S\n\016VideoThumbnail\022\021\n\t"
+ + "thumbnail\030\001 \001(\014\022.\n\013time_offset\030\002 \001(\0132\031.g"
+ + "oogle.protobuf.Duration\"\251\001\n\014VideoPayload"
+ + "\022\021\n\tmime_type\030\001 \001(\t\022\021\n\tvideo_uri\030\002 \001(\t\022K"
+ + "\n\020video_thumbnails\030\003 \003(\01321.google.cloud."
+ + "datalabeling.v1beta1.VideoThumbnail\022\022\n\nf"
+ + "rame_rate\030\004 \001(\002\022\022\n\nsigned_uri\030\005 \001(\tB\347\001\n%"
+ + "com.google.cloud.datalabeling.v1beta1P\001Z"
+ + "Mgoogle.golang.org/genproto/googleapis/c"
+ + "loud/datalabeling/v1beta1;datalabeling\252\002"
+ + "!Google.Cloud.DataLabeling.V1Beta1\312\002!Goo"
+ + "gle\\Cloud\\DataLabeling\\V1beta1\352\002$Google:"
+ + ":Cloud::DataLabeling::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
- com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor =
getDescriptor().getMessageTypes().get(0);
@@ -114,9 +110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"MimeType", "VideoUri", "VideoThumbnails", "FrameRate", "SignedUri",
});
- com.google.api.AnnotationsProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
- com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java
index aadb0018..60ea2a59 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java
@@ -98,129 +98,127 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n/google/cloud/datalabeling/v1beta1/data"
+ "set.proto\022!google.cloud.datalabeling.v1b"
- + "eta1\032\034google/api/annotations.proto\032\031goog"
- + "le/api/resource.proto\0322google/cloud/data"
- + "labeling/v1beta1/annotation.proto\032;googl"
- + "e/cloud/datalabeling/v1beta1/annotation_"
- + "spec_set.proto\0325google/cloud/datalabelin"
- + "g/v1beta1/data_payloads.proto\032?google/cl"
- + "oud/datalabeling/v1beta1/human_annotatio"
- + "n_config.proto\032\037google/protobuf/timestam"
- + "p.proto\"\300\002\n\007Dataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis"
- + "play_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022/\n\013"
- + "create_time\030\004 \001(\0132\032.google.protobuf.Time"
- + "stamp\022E\n\rinput_configs\030\005 \003(\0132..google.cl"
- + "oud.datalabeling.v1beta1.InputConfig\022\032\n\022"
- + "blocking_resources\030\006 \003(\t\022\027\n\017data_item_co"
- + "unt\030\007 \001(\003:O\352AL\n#datalabeling.googleapis."
- + "com/Dataset\022%projects/{project}/datasets"
- + "/{dataset}\"\361\003\n\013InputConfig\022H\n\rtext_metad"
- + "ata\030\006 \001(\0132/.google.cloud.datalabeling.v1"
- + "beta1.TextMetadataH\000\022B\n\ngcs_source\030\002 \001(\013"
- + "2,.google.cloud.datalabeling.v1beta1.Gcs"
- + "SourceH\001\022L\n\017bigquery_source\030\005 \001(\01321.goog"
- + "le.cloud.datalabeling.v1beta1.BigQuerySo"
- + "urceH\001\022>\n\tdata_type\030\001 \001(\0162+.google.cloud"
- + ".datalabeling.v1beta1.DataType\022J\n\017annota"
- + "tion_type\030\003 \001(\01621.google.cloud.datalabel"
- + "ing.v1beta1.AnnotationType\022Z\n\027classifica"
- + "tion_metadata\030\004 \001(\01329.google.cloud.datal"
- + "abeling.v1beta1.ClassificationMetadataB\024"
- + "\n\022data_type_metadataB\010\n\006source\"%\n\014TextMe"
- + "tadata\022\025\n\rlanguage_code\030\001 \001(\t\"0\n\026Classif"
- + "icationMetadata\022\026\n\016is_multi_label\030\001 \001(\010\""
- + "1\n\tGcsSource\022\021\n\tinput_uri\030\001 \001(\t\022\021\n\tmime_"
- + "type\030\002 \001(\t\"#\n\016BigQuerySource\022\021\n\tinput_ur"
- + "i\030\001 \001(\t\"\306\001\n\014OutputConfig\022L\n\017gcs_destinat"
- + "ion\030\001 \001(\01321.google.cloud.datalabeling.v1"
- + "beta1.GcsDestinationH\000\022Y\n\026gcs_folder_des"
- + "tination\030\002 \001(\01327.google.cloud.datalabeli"
- + "ng.v1beta1.GcsFolderDestinationH\000B\r\n\013des"
- + "tination\"7\n\016GcsDestination\022\022\n\noutput_uri"
- + "\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\"1\n\024GcsFolderDe"
- + "stination\022\031\n\021output_folder_uri\030\001 \001(\t\"\347\002\n"
- + "\010DataItem\022H\n\rimage_payload\030\002 \001(\0132/.googl"
- + "e.cloud.datalabeling.v1beta1.ImagePayloa"
- + "dH\000\022F\n\014text_payload\030\003 \001(\0132..google.cloud"
- + ".datalabeling.v1beta1.TextPayloadH\000\022H\n\rv"
- + "ideo_payload\030\004 \001(\0132/.google.cloud.datala"
- + "beling.v1beta1.VideoPayloadH\000\022\014\n\004name\030\001 "
- + "\001(\t:f\352Ac\n$datalabeling.googleapis.com/Da"
- + "taItem\022;projects/{project}/datasets/{dat"
- + "aset}/dataItems/{data_item}B\t\n\007payload\"\377"
- + "\004\n\020AnnotatedDataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis"
- + "play_name\030\002 \001(\t\022\023\n\013description\030\t \001(\t\022N\n\021"
- + "annotation_source\030\003 \001(\01623.google.cloud.d"
- + "atalabeling.v1beta1.AnnotationSource\022J\n\017"
- + "annotation_type\030\010 \001(\01621.google.cloud.dat"
- + "alabeling.v1beta1.AnnotationType\022\025\n\rexam"
- + "ple_count\030\004 \001(\003\022\037\n\027completed_example_cou"
- + "nt\030\005 \001(\003\022B\n\013label_stats\030\006 \001(\0132-.google.c"
- + "loud.datalabeling.v1beta1.LabelStats\022/\n\013"
- + "create_time\030\007 \001(\0132\032.google.protobuf.Time"
- + "stamp\022M\n\010metadata\030\n \001(\0132;.google.cloud.d"
- + "atalabeling.v1beta1.AnnotatedDatasetMeta"
- + "data\022\032\n\022blocking_resources\030\013 \003(\t:~\352A{\n,d"
- + "atalabeling.googleapis.com/AnnotatedData"
- + "set\022Kprojects/{project}/datasets/{datase"
- + "t}/annotatedDatasets/{annotated_dataset}"
- + "\"\231\001\n\nLabelStats\022V\n\rexample_count\030\001 \003(\0132?"
- + ".google.cloud.datalabeling.v1beta1.Label"
- + "Stats.ExampleCountEntry\0323\n\021ExampleCountE"
- + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\242\010\n"
- + "\030AnnotatedDatasetMetadata\022c\n\033image_class"
- + "ification_config\030\002 \001(\0132<.google.cloud.da"
- + "talabeling.v1beta1.ImageClassificationCo"
- + "nfigH\000\022U\n\024bounding_poly_config\030\003 \001(\01325.g"
- + "oogle.cloud.datalabeling.v1beta1.Boundin"
- + "gPolyConfigH\000\022L\n\017polyline_config\030\004 \001(\01321"
- + ".google.cloud.datalabeling.v1beta1.Polyl"
- + "ineConfigH\000\022T\n\023segmentation_config\030\005 \001(\013"
- + "25.google.cloud.datalabeling.v1beta1.Seg"
- + "mentationConfigH\000\022c\n\033video_classificatio"
- + "n_config\030\006 \001(\0132<.google.cloud.datalabeli"
- + "ng.v1beta1.VideoClassificationConfigH\000\022["
- + "\n\027object_detection_config\030\007 \001(\01328.google"
- + ".cloud.datalabeling.v1beta1.ObjectDetect"
- + "ionConfigH\000\022Y\n\026object_tracking_config\030\010 "
- + "\001(\01327.google.cloud.datalabeling.v1beta1."
- + "ObjectTrackingConfigH\000\022F\n\014event_config\030\t"
- + " \001(\0132..google.cloud.datalabeling.v1beta1"
- + ".EventConfigH\000\022a\n\032text_classification_co"
- + "nfig\030\n \001(\0132;.google.cloud.datalabeling.v"
- + "1beta1.TextClassificationConfigH\000\022f\n\035tex"
- + "t_entity_extraction_config\030\013 \001(\0132=.googl"
- + "e.cloud.datalabeling.v1beta1.TextEntityE"
- + "xtractionConfigH\000\022Y\n\027human_annotation_co"
- + "nfig\030\001 \001(\01328.google.cloud.datalabeling.v"
- + "1beta1.HumanAnnotationConfigB\033\n\031annotati"
- + "on_request_config\"\316\003\n\007Example\022H\n\rimage_p"
- + "ayload\030\002 \001(\0132/.google.cloud.datalabeling"
- + ".v1beta1.ImagePayloadH\000\022F\n\014text_payload\030"
- + "\006 \001(\0132..google.cloud.datalabeling.v1beta"
- + "1.TextPayloadH\000\022H\n\rvideo_payload\030\007 \001(\0132/"
- + ".google.cloud.datalabeling.v1beta1.Video"
- + "PayloadH\000\022\014\n\004name\030\001 \001(\t\022B\n\013annotations\030\005"
- + " \003(\0132-.google.cloud.datalabeling.v1beta1"
- + ".Annotation:\211\001\352A\205\001\n#datalabeling.googlea"
- + "pis.com/Example\022^projects/{project}/data"
- + "sets/{dataset}/annotatedDatasets/{annota"
- + "ted_dataset}/examples/{example}B\t\n\007paylo"
- + "ad*W\n\010DataType\022\031\n\025DATA_TYPE_UNSPECIFIED\020"
- + "\000\022\t\n\005IMAGE\020\001\022\t\n\005VIDEO\020\002\022\010\n\004TEXT\020\004\022\020\n\014GEN"
- + "ERAL_DATA\020\006B\347\001\n%com.google.cloud.datalab"
- + "eling.v1beta1P\001ZMgoogle.golang.org/genpr"
- + "oto/googleapis/cloud/datalabeling/v1beta"
- + "1;datalabeling\252\002!Google.Cloud.DataLabeli"
- + "ng.V1Beta1\312\002!Google\\Cloud\\DataLabeling\\V"
- + "1beta1\352\002$Google::Cloud::DataLabeling::V1"
- + "beta1b\006proto3"
+ + "eta1\032\031google/api/resource.proto\0322google/"
+ + "cloud/datalabeling/v1beta1/annotation.pr"
+ + "oto\032;google/cloud/datalabeling/v1beta1/a"
+ + "nnotation_spec_set.proto\0325google/cloud/d"
+ + "atalabeling/v1beta1/data_payloads.proto\032"
+ + "?google/cloud/datalabeling/v1beta1/human"
+ + "_annotation_config.proto\032\037google/protobu"
+ + "f/timestamp.proto\"\300\002\n\007Dataset\022\014\n\004name\030\001 "
+ + "\001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description"
+ + "\030\003 \001(\t\022/\n\013create_time\030\004 \001(\0132\032.google.pro"
+ + "tobuf.Timestamp\022E\n\rinput_configs\030\005 \003(\0132."
+ + ".google.cloud.datalabeling.v1beta1.Input"
+ + "Config\022\032\n\022blocking_resources\030\006 \003(\t\022\027\n\017da"
+ + "ta_item_count\030\007 \001(\003:O\352AL\n#datalabeling.g"
+ + "oogleapis.com/Dataset\022%projects/{project"
+ + "}/datasets/{dataset}\"\361\003\n\013InputConfig\022H\n\r"
+ + "text_metadata\030\006 \001(\0132/.google.cloud.datal"
+ + "abeling.v1beta1.TextMetadataH\000\022B\n\ngcs_so"
+ + "urce\030\002 \001(\0132,.google.cloud.datalabeling.v"
+ + "1beta1.GcsSourceH\001\022L\n\017bigquery_source\030\005 "
+ + "\001(\01321.google.cloud.datalabeling.v1beta1."
+ + "BigQuerySourceH\001\022>\n\tdata_type\030\001 \001(\0162+.go"
+ + "ogle.cloud.datalabeling.v1beta1.DataType"
+ + "\022J\n\017annotation_type\030\003 \001(\01621.google.cloud"
+ + ".datalabeling.v1beta1.AnnotationType\022Z\n\027"
+ + "classification_metadata\030\004 \001(\01329.google.c"
+ + "loud.datalabeling.v1beta1.Classification"
+ + "MetadataB\024\n\022data_type_metadataB\010\n\006source"
+ + "\"%\n\014TextMetadata\022\025\n\rlanguage_code\030\001 \001(\t\""
+ + "0\n\026ClassificationMetadata\022\026\n\016is_multi_la"
+ + "bel\030\001 \001(\010\"1\n\tGcsSource\022\021\n\tinput_uri\030\001 \001("
+ + "\t\022\021\n\tmime_type\030\002 \001(\t\"#\n\016BigQuerySource\022\021"
+ + "\n\tinput_uri\030\001 \001(\t\"\306\001\n\014OutputConfig\022L\n\017gc"
+ + "s_destination\030\001 \001(\01321.google.cloud.datal"
+ + "abeling.v1beta1.GcsDestinationH\000\022Y\n\026gcs_"
+ + "folder_destination\030\002 \001(\01327.google.cloud."
+ + "datalabeling.v1beta1.GcsFolderDestinatio"
+ + "nH\000B\r\n\013destination\"7\n\016GcsDestination\022\022\n\n"
+ + "output_uri\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\"1\n\024G"
+ + "csFolderDestination\022\031\n\021output_folder_uri"
+ + "\030\001 \001(\t\"\347\002\n\010DataItem\022H\n\rimage_payload\030\002 \001"
+ + "(\0132/.google.cloud.datalabeling.v1beta1.I"
+ + "magePayloadH\000\022F\n\014text_payload\030\003 \001(\0132..go"
+ + "ogle.cloud.datalabeling.v1beta1.TextPayl"
+ + "oadH\000\022H\n\rvideo_payload\030\004 \001(\0132/.google.cl"
+ + "oud.datalabeling.v1beta1.VideoPayloadH\000\022"
+ + "\014\n\004name\030\001 \001(\t:f\352Ac\n$datalabeling.googlea"
+ + "pis.com/DataItem\022;projects/{project}/dat"
+ + "asets/{dataset}/dataItems/{data_item}B\t\n"
+ + "\007payload\"\377\004\n\020AnnotatedDataset\022\014\n\004name\030\001 "
+ + "\001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description"
+ + "\030\t \001(\t\022N\n\021annotation_source\030\003 \001(\01623.goog"
+ + "le.cloud.datalabeling.v1beta1.Annotation"
+ + "Source\022J\n\017annotation_type\030\010 \001(\01621.google"
+ + ".cloud.datalabeling.v1beta1.AnnotationTy"
+ + "pe\022\025\n\rexample_count\030\004 \001(\003\022\037\n\027completed_e"
+ + "xample_count\030\005 \001(\003\022B\n\013label_stats\030\006 \001(\0132"
+ + "-.google.cloud.datalabeling.v1beta1.Labe"
+ + "lStats\022/\n\013create_time\030\007 \001(\0132\032.google.pro"
+ + "tobuf.Timestamp\022M\n\010metadata\030\n \001(\0132;.goog"
+ + "le.cloud.datalabeling.v1beta1.AnnotatedD"
+ + "atasetMetadata\022\032\n\022blocking_resources\030\013 \003"
+ + "(\t:~\352A{\n,datalabeling.googleapis.com/Ann"
+ + "otatedDataset\022Kprojects/{project}/datase"
+ + "ts/{dataset}/annotatedDatasets/{annotate"
+ + "d_dataset}\"\231\001\n\nLabelStats\022V\n\rexample_cou"
+ + "nt\030\001 \003(\0132?.google.cloud.datalabeling.v1b"
+ + "eta1.LabelStats.ExampleCountEntry\0323\n\021Exa"
+ + "mpleCountEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
+ + "(\003:\0028\001\"\242\010\n\030AnnotatedDatasetMetadata\022c\n\033i"
+ + "mage_classification_config\030\002 \001(\0132<.googl"
+ + "e.cloud.datalabeling.v1beta1.ImageClassi"
+ + "ficationConfigH\000\022U\n\024bounding_poly_config"
+ + "\030\003 \001(\01325.google.cloud.datalabeling.v1bet"
+ + "a1.BoundingPolyConfigH\000\022L\n\017polyline_conf"
+ + "ig\030\004 \001(\01321.google.cloud.datalabeling.v1b"
+ + "eta1.PolylineConfigH\000\022T\n\023segmentation_co"
+ + "nfig\030\005 \001(\01325.google.cloud.datalabeling.v"
+ + "1beta1.SegmentationConfigH\000\022c\n\033video_cla"
+ + "ssification_config\030\006 \001(\0132<.google.cloud."
+ + "datalabeling.v1beta1.VideoClassification"
+ + "ConfigH\000\022[\n\027object_detection_config\030\007 \001("
+ + "\01328.google.cloud.datalabeling.v1beta1.Ob"
+ + "jectDetectionConfigH\000\022Y\n\026object_tracking"
+ + "_config\030\010 \001(\01327.google.cloud.datalabelin"
+ + "g.v1beta1.ObjectTrackingConfigH\000\022F\n\014even"
+ + "t_config\030\t \001(\0132..google.cloud.datalabeli"
+ + "ng.v1beta1.EventConfigH\000\022a\n\032text_classif"
+ + "ication_config\030\n \001(\0132;.google.cloud.data"
+ + "labeling.v1beta1.TextClassificationConfi"
+ + "gH\000\022f\n\035text_entity_extraction_config\030\013 \001"
+ + "(\0132=.google.cloud.datalabeling.v1beta1.T"
+ + "extEntityExtractionConfigH\000\022Y\n\027human_ann"
+ + "otation_config\030\001 \001(\01328.google.cloud.data"
+ + "labeling.v1beta1.HumanAnnotationConfigB\033"
+ + "\n\031annotation_request_config\"\316\003\n\007Example\022"
+ + "H\n\rimage_payload\030\002 \001(\0132/.google.cloud.da"
+ + "talabeling.v1beta1.ImagePayloadH\000\022F\n\014tex"
+ + "t_payload\030\006 \001(\0132..google.cloud.datalabel"
+ + "ing.v1beta1.TextPayloadH\000\022H\n\rvideo_paylo"
+ + "ad\030\007 \001(\0132/.google.cloud.datalabeling.v1b"
+ + "eta1.VideoPayloadH\000\022\014\n\004name\030\001 \001(\t\022B\n\013ann"
+ + "otations\030\005 \003(\0132-.google.cloud.datalabeli"
+ + "ng.v1beta1.Annotation:\211\001\352A\205\001\n#datalabeli"
+ + "ng.googleapis.com/Example\022^projects/{pro"
+ + "ject}/datasets/{dataset}/annotatedDatase"
+ + "ts/{annotated_dataset}/examples/{example"
+ + "}B\t\n\007payload*W\n\010DataType\022\031\n\025DATA_TYPE_UN"
+ + "SPECIFIED\020\000\022\t\n\005IMAGE\020\001\022\t\n\005VIDEO\020\002\022\010\n\004TEX"
+ + "T\020\004\022\020\n\014GENERAL_DATA\020\006B\347\001\n%com.google.clo"
+ + "ud.datalabeling.v1beta1P\001ZMgoogle.golang"
+ + ".org/genproto/googleapis/cloud/datalabel"
+ + "ing/v1beta1;datalabeling\252\002!Google.Cloud."
+ + "DataLabeling.V1Beta1\312\002!Google\\Cloud\\Data"
+ + "Labeling\\V1beta1\352\002$Google::Cloud::DataLa"
+ + "beling::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(),
@@ -389,7 +387,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
- com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor();
com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor();
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java
index cc0bb788..509e3953 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java
@@ -58,69 +58,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n6google/cloud/datalabeling/v1beta1/eval"
+ "uation_job.proto\022!google.cloud.datalabel"
- + "ing.v1beta1\032\034google/api/annotations.prot"
- + "o\032\031google/api/resource.proto\032/google/clo"
- + "ud/datalabeling/v1beta1/dataset.proto\0322g"
- + "oogle/cloud/datalabeling/v1beta1/evaluat"
- + "ion.proto\032?google/cloud/datalabeling/v1b"
- + "eta1/human_annotation_config.proto\032\037goog"
- + "le/protobuf/timestamp.proto\032\027google/rpc/"
- + "status.proto\"\342\004\n\rEvaluationJob\022\014\n\004name\030\001"
- + " \001(\t\022\023\n\013description\030\002 \001(\t\022E\n\005state\030\003 \001(\016"
- + "26.google.cloud.datalabeling.v1beta1.Eva"
- + "luationJob.State\022\020\n\010schedule\030\004 \001(\t\022\025\n\rmo"
- + "del_version\030\005 \001(\t\022U\n\025evaluation_job_conf"
- + "ig\030\006 \001(\01326.google.cloud.datalabeling.v1b"
- + "eta1.EvaluationJobConfig\022\033\n\023annotation_s"
- + "pec_set\030\007 \001(\t\022\"\n\032label_missing_ground_tr"
- + "uth\030\010 \001(\010\022<\n\010attempts\030\t \003(\0132*.google.clo"
- + "ud.datalabeling.v1beta1.Attempt\022/\n\013creat"
- + "e_time\030\n \001(\0132\032.google.protobuf.Timestamp"
- + "\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSCHE"
- + "DULED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\013\n\007STOP"
- + "PED\020\004:b\352A_\n)datalabeling.googleapis.com/"
- + "EvaluationJob\0222projects/{project}/evalua"
- + "tionJobs/{evaluation_job}\"\215\007\n\023Evaluation"
- + "JobConfig\022c\n\033image_classification_config"
- + "\030\004 \001(\0132<.google.cloud.datalabeling.v1bet"
- + "a1.ImageClassificationConfigH\000\022U\n\024boundi"
- + "ng_poly_config\030\005 \001(\01325.google.cloud.data"
- + "labeling.v1beta1.BoundingPolyConfigH\000\022a\n"
- + "\032text_classification_config\030\010 \001(\0132;.goog"
- + "le.cloud.datalabeling.v1beta1.TextClassi"
- + "ficationConfigH\000\022D\n\014input_config\030\001 \001(\0132."
- + ".google.cloud.datalabeling.v1beta1.Input"
- + "Config\022N\n\021evaluation_config\030\002 \001(\01323.goog"
- + "le.cloud.datalabeling.v1beta1.Evaluation"
- + "Config\022Y\n\027human_annotation_config\030\003 \001(\0132"
- + "8.google.cloud.datalabeling.v1beta1.Huma"
- + "nAnnotationConfig\022l\n\024bigquery_import_key"
- + "s\030\t \003(\0132N.google.cloud.datalabeling.v1be"
- + "ta1.EvaluationJobConfig.BigqueryImportKe"
- + "ysEntry\022\025\n\rexample_count\030\n \001(\005\022!\n\031exampl"
- + "e_sample_percentage\030\013 \001(\001\022`\n\033evaluation_"
- + "job_alert_config\030\r \001(\0132;.google.cloud.da"
- + "talabeling.v1beta1.EvaluationJobAlertCon"
- + "fig\0329\n\027BigqueryImportKeysEntry\022\013\n\003key\030\001 "
- + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B!\n\037human_annotati"
- + "on_request_config\"X\n\030EvaluationJobAlertC"
- + "onfig\022\r\n\005email\030\001 \001(\t\022-\n%min_acceptable_m"
- + "ean_average_precision\030\002 \001(\001\"i\n\007Attempt\0220"
- + "\n\014attempt_time\030\001 \001(\0132\032.google.protobuf.T"
- + "imestamp\022,\n\020partial_failures\030\002 \003(\0132\022.goo"
- + "gle.rpc.StatusB\347\001\n%com.google.cloud.data"
- + "labeling.v1beta1P\001ZMgoogle.golang.org/ge"
- + "nproto/googleapis/cloud/datalabeling/v1b"
- + "eta1;datalabeling\252\002!Google.Cloud.DataLab"
- + "eling.V1Beta1\312\002!Google\\Cloud\\DataLabelin"
- + "g\\V1beta1\352\002$Google::Cloud::DataLabeling:"
- + ":V1beta1b\006proto3"
+ + "ing.v1beta1\032\031google/api/resource.proto\032/"
+ + "google/cloud/datalabeling/v1beta1/datase"
+ + "t.proto\0322google/cloud/datalabeling/v1bet"
+ + "a1/evaluation.proto\032?google/cloud/datala"
+ + "beling/v1beta1/human_annotation_config.p"
+ + "roto\032\037google/protobuf/timestamp.proto\032\027g"
+ + "oogle/rpc/status.proto\"\342\004\n\rEvaluationJob"
+ + "\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022E\n\005s"
+ + "tate\030\003 \001(\01626.google.cloud.datalabeling.v"
+ + "1beta1.EvaluationJob.State\022\020\n\010schedule\030\004"
+ + " \001(\t\022\025\n\rmodel_version\030\005 \001(\t\022U\n\025evaluatio"
+ + "n_job_config\030\006 \001(\01326.google.cloud.datala"
+ + "beling.v1beta1.EvaluationJobConfig\022\033\n\023an"
+ + "notation_spec_set\030\007 \001(\t\022\"\n\032label_missing"
+ + "_ground_truth\030\010 \001(\010\022<\n\010attempts\030\t \003(\0132*."
+ + "google.cloud.datalabeling.v1beta1.Attemp"
+ + "t\022/\n\013create_time\030\n \001(\0132\032.google.protobuf"
+ + ".Timestamp\"S\n\005State\022\025\n\021STATE_UNSPECIFIED"
+ + "\020\000\022\r\n\tSCHEDULED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED"
+ + "\020\003\022\013\n\007STOPPED\020\004:b\352A_\n)datalabeling.googl"
+ + "eapis.com/EvaluationJob\0222projects/{proje"
+ + "ct}/evaluationJobs/{evaluation_job}\"\215\007\n\023"
+ + "EvaluationJobConfig\022c\n\033image_classificat"
+ + "ion_config\030\004 \001(\0132<.google.cloud.datalabe"
+ + "ling.v1beta1.ImageClassificationConfigH\000"
+ + "\022U\n\024bounding_poly_config\030\005 \001(\01325.google."
+ + "cloud.datalabeling.v1beta1.BoundingPolyC"
+ + "onfigH\000\022a\n\032text_classification_config\030\010 "
+ + "\001(\0132;.google.cloud.datalabeling.v1beta1."
+ + "TextClassificationConfigH\000\022D\n\014input_conf"
+ + "ig\030\001 \001(\0132..google.cloud.datalabeling.v1b"
+ + "eta1.InputConfig\022N\n\021evaluation_config\030\002 "
+ + "\001(\01323.google.cloud.datalabeling.v1beta1."
+ + "EvaluationConfig\022Y\n\027human_annotation_con"
+ + "fig\030\003 \001(\01328.google.cloud.datalabeling.v1"
+ + "beta1.HumanAnnotationConfig\022l\n\024bigquery_"
+ + "import_keys\030\t \003(\0132N.google.cloud.datalab"
+ + "eling.v1beta1.EvaluationJobConfig.Bigque"
+ + "ryImportKeysEntry\022\025\n\rexample_count\030\n \001(\005"
+ + "\022!\n\031example_sample_percentage\030\013 \001(\001\022`\n\033e"
+ + "valuation_job_alert_config\030\r \001(\0132;.googl"
+ + "e.cloud.datalabeling.v1beta1.EvaluationJ"
+ + "obAlertConfig\0329\n\027BigqueryImportKeysEntry"
+ + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B!\n\037huma"
+ + "n_annotation_request_config\"X\n\030Evaluatio"
+ + "nJobAlertConfig\022\r\n\005email\030\001 \001(\t\022-\n%min_ac"
+ + "ceptable_mean_average_precision\030\002 \001(\001\"i\n"
+ + "\007Attempt\0220\n\014attempt_time\030\001 \001(\0132\032.google."
+ + "protobuf.Timestamp\022,\n\020partial_failures\030\002"
+ + " \003(\0132\022.google.rpc.StatusB\347\001\n%com.google."
+ + "cloud.datalabeling.v1beta1P\001ZMgoogle.gol"
+ + "ang.org/genproto/googleapis/cloud/datala"
+ + "beling/v1beta1;datalabeling\252\002!Google.Clo"
+ + "ud.DataLabeling.V1Beta1\312\002!Google\\Cloud\\D"
+ + "ataLabeling\\V1beta1\352\002$Google::Cloud::Dat"
+ + "aLabeling::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(),
@@ -194,7 +192,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
- com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor();
com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor();
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java
index 8c19bf96..2474c005 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java
@@ -82,75 +82,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n2google/cloud/datalabeling/v1beta1/eval"
+ "uation.proto\022!google.cloud.datalabeling."
- + "v1beta1\032\034google/api/annotations.proto\032\031g"
- + "oogle/api/resource.proto\0322google/cloud/d"
- + "atalabeling/v1beta1/annotation.proto\032;go"
- + "ogle/cloud/datalabeling/v1beta1/annotati"
- + "on_spec_set.proto\032\037google/protobuf/times"
- + "tamp.proto\"\366\003\n\nEvaluation\022\014\n\004name\030\001 \001(\t\022"
- + "C\n\006config\030\002 \001(\01323.google.cloud.datalabel"
- + "ing.v1beta1.EvaluationConfig\022;\n\027evaluati"
- + "on_job_run_time\030\003 \001(\0132\032.google.protobuf."
- + "Timestamp\022/\n\013create_time\030\004 \001(\0132\032.google."
- + "protobuf.Timestamp\022P\n\022evaluation_metrics"
- + "\030\005 \001(\01324.google.cloud.datalabeling.v1bet"
- + "a1.EvaluationMetrics\022J\n\017annotation_type\030"
- + "\006 \001(\01621.google.cloud.datalabeling.v1beta"
- + "1.AnnotationType\022\034\n\024evaluated_item_count"
- + "\030\007 \001(\003:k\352Ah\n&datalabeling.googleapis.com"
- + "/Evaluation\022>projects/{project}/datasets"
- + "/{dataset}/evaluations/{evaluation}\"\221\001\n\020"
- + "EvaluationConfig\022j\n\037bounding_box_evaluat"
- + "ion_options\030\001 \001(\0132?.google.cloud.datalab"
- + "eling.v1beta1.BoundingBoxEvaluationOptio"
- + "nsH\000B\021\n\017vertical_option\"5\n\034BoundingBoxEv"
- + "aluationOptions\022\025\n\riou_threshold\030\001 \001(\002\"\331"
- + "\001\n\021EvaluationMetrics\022Z\n\026classification_m"
- + "etrics\030\001 \001(\01328.google.cloud.datalabeling"
- + ".v1beta1.ClassificationMetricsH\000\022]\n\030obje"
- + "ct_detection_metrics\030\002 \001(\01329.google.clou"
- + "d.datalabeling.v1beta1.ObjectDetectionMe"
- + "tricsH\000B\t\n\007metrics\"\243\001\n\025ClassificationMet"
- + "rics\022<\n\010pr_curve\030\001 \001(\0132*.google.cloud.da"
- + "talabeling.v1beta1.PrCurve\022L\n\020confusion_"
- + "matrix\030\002 \001(\01322.google.cloud.datalabeling"
- + ".v1beta1.ConfusionMatrix\"V\n\026ObjectDetect"
- + "ionMetrics\022<\n\010pr_curve\030\001 \001(\0132*.google.cl"
- + "oud.datalabeling.v1beta1.PrCurve\"\346\003\n\007PrC"
- + "urve\022J\n\017annotation_spec\030\001 \001(\01321.google.c"
+ + "v1beta1\032\031google/api/resource.proto\0322goog"
+ + "le/cloud/datalabeling/v1beta1/annotation"
+ + ".proto\032;google/cloud/datalabeling/v1beta"
+ + "1/annotation_spec_set.proto\032\037google/prot"
+ + "obuf/timestamp.proto\"\366\003\n\nEvaluation\022\014\n\004n"
+ + "ame\030\001 \001(\t\022C\n\006config\030\002 \001(\01323.google.cloud"
+ + ".datalabeling.v1beta1.EvaluationConfig\022;"
+ + "\n\027evaluation_job_run_time\030\003 \001(\0132\032.google"
+ + ".protobuf.Timestamp\022/\n\013create_time\030\004 \001(\013"
+ + "2\032.google.protobuf.Timestamp\022P\n\022evaluati"
+ + "on_metrics\030\005 \001(\01324.google.cloud.datalabe"
+ + "ling.v1beta1.EvaluationMetrics\022J\n\017annota"
+ + "tion_type\030\006 \001(\01621.google.cloud.datalabel"
+ + "ing.v1beta1.AnnotationType\022\034\n\024evaluated_"
+ + "item_count\030\007 \001(\003:k\352Ah\n&datalabeling.goog"
+ + "leapis.com/Evaluation\022>projects/{project"
+ + "}/datasets/{dataset}/evaluations/{evalua"
+ + "tion}\"\221\001\n\020EvaluationConfig\022j\n\037bounding_b"
+ + "ox_evaluation_options\030\001 \001(\0132?.google.clo"
+ + "ud.datalabeling.v1beta1.BoundingBoxEvalu"
+ + "ationOptionsH\000B\021\n\017vertical_option\"5\n\034Bou"
+ + "ndingBoxEvaluationOptions\022\025\n\riou_thresho"
+ + "ld\030\001 \001(\002\"\331\001\n\021EvaluationMetrics\022Z\n\026classi"
+ + "fication_metrics\030\001 \001(\01328.google.cloud.da"
+ + "talabeling.v1beta1.ClassificationMetrics"
+ + "H\000\022]\n\030object_detection_metrics\030\002 \001(\01329.g"
+ + "oogle.cloud.datalabeling.v1beta1.ObjectD"
+ + "etectionMetricsH\000B\t\n\007metrics\"\243\001\n\025Classif"
+ + "icationMetrics\022<\n\010pr_curve\030\001 \001(\0132*.googl"
+ + "e.cloud.datalabeling.v1beta1.PrCurve\022L\n\020"
+ + "confusion_matrix\030\002 \001(\01322.google.cloud.da"
+ + "talabeling.v1beta1.ConfusionMatrix\"V\n\026Ob"
+ + "jectDetectionMetrics\022<\n\010pr_curve\030\001 \001(\0132*"
+ + ".google.cloud.datalabeling.v1beta1.PrCur"
+ + "ve\"\346\003\n\007PrCurve\022J\n\017annotation_spec\030\001 \001(\0132"
+ + "1.google.cloud.datalabeling.v1beta1.Anno"
+ + "tationSpec\022\030\n\020area_under_curve\030\002 \001(\002\022e\n\032"
+ + "confidence_metrics_entries\030\003 \003(\0132A.googl"
+ + "e.cloud.datalabeling.v1beta1.PrCurve.Con"
+ + "fidenceMetricsEntry\022\036\n\026mean_average_prec"
+ + "ision\030\004 \001(\002\032\355\001\n\026ConfidenceMetricsEntry\022\034"
+ + "\n\024confidence_threshold\030\001 \001(\002\022\016\n\006recall\030\002"
+ + " \001(\002\022\021\n\tprecision\030\003 \001(\002\022\020\n\010f1_score\030\004 \001("
+ + "\002\022\022\n\nrecall_at1\030\005 \001(\002\022\025\n\rprecision_at1\030\006"
+ + " \001(\002\022\024\n\014f1_score_at1\030\007 \001(\002\022\022\n\nrecall_at5"
+ + "\030\010 \001(\002\022\025\n\rprecision_at5\030\t \001(\002\022\024\n\014f1_scor"
+ + "e_at5\030\n \001(\002\"\374\002\n\017ConfusionMatrix\022C\n\003row\030\001"
+ + " \003(\01326.google.cloud.datalabeling.v1beta1"
+ + ".ConfusionMatrix.Row\032v\n\024ConfusionMatrixE"
+ + "ntry\022J\n\017annotation_spec\030\001 \001(\01321.google.c"
+ "loud.datalabeling.v1beta1.AnnotationSpec"
- + "\022\030\n\020area_under_curve\030\002 \001(\002\022e\n\032confidence"
- + "_metrics_entries\030\003 \003(\0132A.google.cloud.da"
- + "talabeling.v1beta1.PrCurve.ConfidenceMet"
- + "ricsEntry\022\036\n\026mean_average_precision\030\004 \001("
- + "\002\032\355\001\n\026ConfidenceMetricsEntry\022\034\n\024confiden"
- + "ce_threshold\030\001 \001(\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tpr"
- + "ecision\030\003 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\nrecal"
- + "l_at1\030\005 \001(\002\022\025\n\rprecision_at1\030\006 \001(\002\022\024\n\014f1"
- + "_score_at1\030\007 \001(\002\022\022\n\nrecall_at5\030\010 \001(\002\022\025\n\r"
- + "precision_at5\030\t \001(\002\022\024\n\014f1_score_at5\030\n \001("
- + "\002\"\374\002\n\017ConfusionMatrix\022C\n\003row\030\001 \003(\01326.goo"
- + "gle.cloud.datalabeling.v1beta1.Confusion"
- + "Matrix.Row\032v\n\024ConfusionMatrixEntry\022J\n\017an"
- + "notation_spec\030\001 \001(\01321.google.cloud.datal"
- + "abeling.v1beta1.AnnotationSpec\022\022\n\nitem_c"
- + "ount\030\002 \001(\005\032\253\001\n\003Row\022J\n\017annotation_spec\030\001 "
- + "\001(\01321.google.cloud.datalabeling.v1beta1."
- + "AnnotationSpec\022X\n\007entries\030\002 \003(\0132G.google"
- + ".cloud.datalabeling.v1beta1.ConfusionMat"
- + "rix.ConfusionMatrixEntryB\347\001\n%com.google."
- + "cloud.datalabeling.v1beta1P\001ZMgoogle.gol"
- + "ang.org/genproto/googleapis/cloud/datala"
- + "beling/v1beta1;datalabeling\252\002!Google.Clo"
- + "ud.DataLabeling.V1Beta1\312\002!Google\\Cloud\\D"
- + "ataLabeling\\V1beta1\352\002$Google::Cloud::Dat"
- + "aLabeling::V1beta1b\006proto3"
+ + "\022\022\n\nitem_count\030\002 \001(\005\032\253\001\n\003Row\022J\n\017annotati"
+ + "on_spec\030\001 \001(\01321.google.cloud.datalabelin"
+ + "g.v1beta1.AnnotationSpec\022X\n\007entries\030\002 \003("
+ + "\0132G.google.cloud.datalabeling.v1beta1.Co"
+ + "nfusionMatrix.ConfusionMatrixEntryB\347\001\n%c"
+ + "om.google.cloud.datalabeling.v1beta1P\001ZM"
+ + "google.golang.org/genproto/googleapis/cl"
+ + "oud/datalabeling/v1beta1;datalabeling\252\002!"
+ + "Google.Cloud.DataLabeling.V1Beta1\312\002!Goog"
+ + "le\\Cloud\\DataLabeling\\V1beta1\352\002$Google::"
+ + "Cloud::DataLabeling::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(),
@@ -273,7 +271,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
- com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor();
com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor();
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java
index 437f834d..fa1f5092 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java
@@ -90,64 +90,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n?google/cloud/datalabeling/v1beta1/huma"
+ "n_annotation_config.proto\022!google.cloud."
- + "datalabeling.v1beta1\032\034google/api/annotat"
- + "ions.proto\032\037google/api/field_behavior.pr"
- + "oto\032\036google/protobuf/duration.proto\"\324\002\n\025"
- + "HumanAnnotationConfig\022\030\n\013instruction\030\001 \001"
- + "(\tB\003\340A\002\022+\n\036annotated_dataset_display_nam"
- + "e\030\002 \001(\tB\003\340A\002\022*\n\035annotated_dataset_descri"
- + "ption\030\003 \001(\tB\003\340A\001\022\030\n\013label_group\030\004 \001(\tB\003\340"
- + "A\001\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\001\022\032\n\rreplic"
- + "a_count\030\006 \001(\005B\003\340A\001\0229\n\021question_duration\030"
- + "\007 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\037\n"
- + "\022contributor_emails\030\t \003(\tB\003\340A\001\022\032\n\022user_e"
- + "mail_address\030\n \001(\t\"\275\001\n\031ImageClassificati"
- + "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340"
- + "A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\022^\n\027an"
- + "swer_aggregation_type\030\003 \001(\01628.google.clo"
- + "ud.datalabeling.v1beta1.StringAggregatio"
- + "nTypeB\003\340A\001\"X\n\022BoundingPolyConfig\022 \n\023anno"
- + "tation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023instructio"
- + "n_message\030\002 \001(\tB\003\340A\001\"T\n\016PolylineConfig\022 "
- + "\n\023annotation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023inst"
- + "ruction_message\030\002 \001(\tB\003\340A\001\"S\n\022Segmentati"
- + "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340"
- + "A\002\022\033\n\023instruction_message\030\002 \001(\t\"\233\002\n\031Vide"
- + "oClassificationConfig\022~\n\033annotation_spec"
- + "_set_configs\030\001 \003(\0132T.google.cloud.datala"
- + "beling.v1beta1.VideoClassificationConfig"
- + ".AnnotationSpecSetConfigB\003\340A\002\022!\n\024apply_s"
- + "hot_detection\030\002 \001(\010B\003\340A\001\032[\n\027AnnotationSp"
- + "ecSetConfig\022 \n\023annotation_spec_set\030\001 \001(\t"
- + "B\003\340A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\"]\n"
- + "\025ObjectDetectionConfig\022 \n\023annotation_spe"
- + "c_set\030\001 \001(\tB\003\340A\002\022\"\n\025extraction_frame_rat"
- + "e\030\003 \001(\001B\003\340A\002\"8\n\024ObjectTrackingConfig\022 \n\023"
- + "annotation_spec_set\030\001 \001(\tB\003\340A\002\"0\n\013EventC"
- + "onfig\022!\n\024annotation_spec_sets\030\001 \003(\tB\003\340A\002"
- + "\"\257\001\n\030TextClassificationConfig\022\036\n\021allow_m"
- + "ulti_label\030\001 \001(\010B\003\340A\001\022 \n\023annotation_spec"
- + "_set\030\002 \001(\tB\003\340A\002\022Q\n\020sentiment_config\030\003 \001("
- + "\01322.google.cloud.datalabeling.v1beta1.Se"
- + "ntimentConfigB\003\340A\001\";\n\017SentimentConfig\022(\n"
- + " enable_label_sentiment_selection\030\001 \001(\010\""
- + ">\n\032TextEntityExtractionConfig\022 \n\023annotat"
- + "ion_spec_set\030\001 \001(\tB\003\340A\002*{\n\025StringAggrega"
- + "tionType\022\'\n#STRING_AGGREGATION_TYPE_UNSP"
- + "ECIFIED\020\000\022\021\n\rMAJORITY_VOTE\020\001\022\022\n\016UNANIMOU"
- + "S_VOTE\020\002\022\022\n\016NO_AGGREGATION\020\003B\347\001\n%com.goo"
- + "gle.cloud.datalabeling.v1beta1P\001ZMgoogle"
- + ".golang.org/genproto/googleapis/cloud/da"
- + "talabeling/v1beta1;datalabeling\252\002!Google"
- + ".Cloud.DataLabeling.V1Beta1\312\002!Google\\Clo"
- + "ud\\DataLabeling\\V1beta1\352\002$Google::Cloud:"
- + ":DataLabeling::V1beta1b\006proto3"
+ + "datalabeling.v1beta1\032\037google/api/field_b"
+ + "ehavior.proto\032\036google/protobuf/duration."
+ + "proto\"\324\002\n\025HumanAnnotationConfig\022\030\n\013instr"
+ + "uction\030\001 \001(\tB\003\340A\002\022+\n\036annotated_dataset_d"
+ + "isplay_name\030\002 \001(\tB\003\340A\002\022*\n\035annotated_data"
+ + "set_description\030\003 \001(\tB\003\340A\001\022\030\n\013label_grou"
+ + "p\030\004 \001(\tB\003\340A\001\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\001"
+ + "\022\032\n\rreplica_count\030\006 \001(\005B\003\340A\001\0229\n\021question"
+ + "_duration\030\007 \001(\0132\031.google.protobuf.Durati"
+ + "onB\003\340A\001\022\037\n\022contributor_emails\030\t \003(\tB\003\340A\001"
+ + "\022\032\n\022user_email_address\030\n \001(\t\"\275\001\n\031ImageCl"
+ + "assificationConfig\022 \n\023annotation_spec_se"
+ + "t\030\001 \001(\tB\003\340A\002\022\036\n\021allow_multi_label\030\002 \001(\010B"
+ + "\003\340A\001\022^\n\027answer_aggregation_type\030\003 \001(\01628."
+ + "google.cloud.datalabeling.v1beta1.String"
+ + "AggregationTypeB\003\340A\001\"X\n\022BoundingPolyConf"
+ + "ig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023"
+ + "instruction_message\030\002 \001(\tB\003\340A\001\"T\n\016Polyli"
+ + "neConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340"
+ + "A\002\022 \n\023instruction_message\030\002 \001(\tB\003\340A\001\"S\n\022"
+ + "SegmentationConfig\022 \n\023annotation_spec_se"
+ + "t\030\001 \001(\tB\003\340A\002\022\033\n\023instruction_message\030\002 \001("
+ + "\t\"\233\002\n\031VideoClassificationConfig\022~\n\033annot"
+ + "ation_spec_set_configs\030\001 \003(\0132T.google.cl"
+ + "oud.datalabeling.v1beta1.VideoClassifica"
+ + "tionConfig.AnnotationSpecSetConfigB\003\340A\002\022"
+ + "!\n\024apply_shot_detection\030\002 \001(\010B\003\340A\001\032[\n\027An"
+ + "notationSpecSetConfig\022 \n\023annotation_spec"
+ + "_set\030\001 \001(\tB\003\340A\002\022\036\n\021allow_multi_label\030\002 \001"
+ + "(\010B\003\340A\001\"]\n\025ObjectDetectionConfig\022 \n\023anno"
+ + "tation_spec_set\030\001 \001(\tB\003\340A\002\022\"\n\025extraction"
+ + "_frame_rate\030\003 \001(\001B\003\340A\002\"8\n\024ObjectTracking"
+ + "Config\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340A\002"
+ + "\"0\n\013EventConfig\022!\n\024annotation_spec_sets\030"
+ + "\001 \003(\tB\003\340A\002\"\257\001\n\030TextClassificationConfig\022"
+ + "\036\n\021allow_multi_label\030\001 \001(\010B\003\340A\001\022 \n\023annot"
+ + "ation_spec_set\030\002 \001(\tB\003\340A\002\022Q\n\020sentiment_c"
+ + "onfig\030\003 \001(\01322.google.cloud.datalabeling."
+ + "v1beta1.SentimentConfigB\003\340A\001\";\n\017Sentimen"
+ + "tConfig\022(\n enable_label_sentiment_select"
+ + "ion\030\001 \001(\010\">\n\032TextEntityExtractionConfig\022"
+ + " \n\023annotation_spec_set\030\001 \001(\tB\003\340A\002*{\n\025Str"
+ + "ingAggregationType\022\'\n#STRING_AGGREGATION"
+ + "_TYPE_UNSPECIFIED\020\000\022\021\n\rMAJORITY_VOTE\020\001\022\022"
+ + "\n\016UNANIMOUS_VOTE\020\002\022\022\n\016NO_AGGREGATION\020\003B\347"
+ + "\001\n%com.google.cloud.datalabeling.v1beta1"
+ + "P\001ZMgoogle.golang.org/genproto/googleapi"
+ + "s/cloud/datalabeling/v1beta1;datalabelin"
+ + "g\252\002!Google.Cloud.DataLabeling.V1Beta1\312\002!"
+ + "Google\\Cloud\\DataLabeling\\V1beta1\352\002$Goog"
+ + "le::Cloud::DataLabeling::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.protobuf.DurationProto.getDescriptor(),
});
@@ -270,7 +268,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
- com.google.api.AnnotationsProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
}
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java
index 867b4e57..1eb00f74 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java
@@ -514,7 +514,7 @@ public com.google.cloud.datalabeling.v1beta1.DataType getDataType() {
*
*
* @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See
- * google/cloud/datalabeling/v1beta1/instruction.proto;l=65
+ * google/cloud/datalabeling/v1beta1/instruction.proto;l=64
* @return Whether the csvInstruction field is set.
*/
@java.lang.Override
@@ -538,7 +538,7 @@ public boolean hasCsvInstruction() {
*
*
* @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See
- * google/cloud/datalabeling/v1beta1/instruction.proto;l=65
+ * google/cloud/datalabeling/v1beta1/instruction.proto;l=64
* @return The csvInstruction.
*/
@java.lang.Override
@@ -2010,7 +2010,7 @@ public Builder clearDataType() {
*
*
* @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See
- * google/cloud/datalabeling/v1beta1/instruction.proto;l=65
+ * google/cloud/datalabeling/v1beta1/instruction.proto;l=64
* @return Whether the csvInstruction field is set.
*/
@java.lang.Deprecated
@@ -2033,7 +2033,7 @@ public boolean hasCsvInstruction() {
*
*
* @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See
- * google/cloud/datalabeling/v1beta1/instruction.proto;l=65
+ * google/cloud/datalabeling/v1beta1/instruction.proto;l=64
* @return The csvInstruction.
*/
@java.lang.Deprecated
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java
index b6a513d0..31184cd7 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java
@@ -213,7 +213,7 @@ public interface InstructionOrBuilder
*
*
* @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See
- * google/cloud/datalabeling/v1beta1/instruction.proto;l=65
+ * google/cloud/datalabeling/v1beta1/instruction.proto;l=64
* @return Whether the csvInstruction field is set.
*/
@java.lang.Deprecated
@@ -234,7 +234,7 @@ public interface InstructionOrBuilder
*
*
* @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See
- * google/cloud/datalabeling/v1beta1/instruction.proto;l=65
+ * google/cloud/datalabeling/v1beta1/instruction.proto;l=64
* @return The csvInstruction.
*/
@java.lang.Deprecated
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java
index ce3bbad2..32f4683f 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java
@@ -50,37 +50,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n3google/cloud/datalabeling/v1beta1/inst"
+ "ruction.proto\022!google.cloud.datalabeling"
- + ".v1beta1\032\034google/api/annotations.proto\032\031"
- + "google/api/resource.proto\032/google/cloud/"
- + "datalabeling/v1beta1/dataset.proto\032\037goog"
- + "le/protobuf/timestamp.proto\"\375\003\n\013Instruct"
- + "ion\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022"
- + "\023\n\013description\030\003 \001(\t\022/\n\013create_time\030\004 \001("
- + "\0132\032.google.protobuf.Timestamp\022/\n\013update_"
- + "time\030\005 \001(\0132\032.google.protobuf.Timestamp\022>"
- + "\n\tdata_type\030\006 \001(\0162+.google.cloud.datalab"
- + "eling.v1beta1.DataType\022N\n\017csv_instructio"
- + "n\030\007 \001(\01321.google.cloud.datalabeling.v1be"
- + "ta1.CsvInstructionB\002\030\001\022J\n\017pdf_instructio"
- + "n\030\t \001(\01321.google.cloud.datalabeling.v1be"
- + "ta1.PdfInstruction\022\032\n\022blocking_resources"
- + "\030\n \003(\t:[\352AX\n\'datalabeling.googleapis.com"
- + "/Instruction\022-projects/{project}/instruc"
- + "tions/{instruction}\"&\n\016CsvInstruction\022\024\n"
- + "\014gcs_file_uri\030\001 \001(\t\"&\n\016PdfInstruction\022\024\n"
- + "\014gcs_file_uri\030\001 \001(\tB\347\001\n%com.google.cloud"
- + ".datalabeling.v1beta1P\001ZMgoogle.golang.o"
- + "rg/genproto/googleapis/cloud/datalabelin"
- + "g/v1beta1;datalabeling\252\002!Google.Cloud.Da"
- + "taLabeling.V1Beta1\312\002!Google\\Cloud\\DataLa"
- + "beling\\V1beta1\352\002$Google::Cloud::DataLabe"
- + "ling::V1beta1b\006proto3"
+ + ".v1beta1\032\031google/api/resource.proto\032/goo"
+ + "gle/cloud/datalabeling/v1beta1/dataset.p"
+ + "roto\032\037google/protobuf/timestamp.proto\"\375\003"
+ + "\n\013Instruction\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n"
+ + "ame\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022/\n\013create"
+ + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022"
+ + "/\n\013update_time\030\005 \001(\0132\032.google.protobuf.T"
+ + "imestamp\022>\n\tdata_type\030\006 \001(\0162+.google.clo"
+ + "ud.datalabeling.v1beta1.DataType\022N\n\017csv_"
+ + "instruction\030\007 \001(\01321.google.cloud.datalab"
+ + "eling.v1beta1.CsvInstructionB\002\030\001\022J\n\017pdf_"
+ + "instruction\030\t \001(\01321.google.cloud.datalab"
+ + "eling.v1beta1.PdfInstruction\022\032\n\022blocking"
+ + "_resources\030\n \003(\t:[\352AX\n\'datalabeling.goog"
+ + "leapis.com/Instruction\022-projects/{projec"
+ + "t}/instructions/{instruction}\"&\n\016CsvInst"
+ + "ruction\022\024\n\014gcs_file_uri\030\001 \001(\t\"&\n\016PdfInst"
+ + "ruction\022\024\n\014gcs_file_uri\030\001 \001(\tB\347\001\n%com.go"
+ + "ogle.cloud.datalabeling.v1beta1P\001ZMgoogl"
+ + "e.golang.org/genproto/googleapis/cloud/d"
+ + "atalabeling/v1beta1;datalabeling\252\002!Googl"
+ + "e.Cloud.DataLabeling.V1Beta1\312\002!Google\\Cl"
+ + "oud\\DataLabeling\\V1beta1\352\002$Google::Cloud"
+ + "::DataLabeling::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
@@ -122,7 +120,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
- com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java
index 6be6f4f6..f2fc40a6 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java
@@ -110,120 +110,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n2google/cloud/datalabeling/v1beta1/oper"
+ "ations.proto\022!google.cloud.datalabeling."
- + "v1beta1\032\034google/api/annotations.proto\032\031g"
- + "oogle/api/resource.proto\032/google/cloud/d"
- + "atalabeling/v1beta1/dataset.proto\032?googl"
- + "e/cloud/datalabeling/v1beta1/human_annot"
- + "ation_config.proto\032\037google/protobuf/time"
- + "stamp.proto\032\027google/rpc/status.proto\"Y\n\033"
- + "ImportDataOperationResponse\022\017\n\007dataset\030\001"
- + " \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n\014import_coun"
- + "t\030\003 \001(\005\"\345\001\n\033ExportDataOperationResponse\022"
- + "\017\n\007dataset\030\001 \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n"
- + "\014export_count\030\003 \001(\005\022B\n\013label_stats\030\004 \001(\013"
- + "2-.google.cloud.datalabeling.v1beta1.Lab"
- + "elStats\022F\n\routput_config\030\005 \001(\0132/.google."
- + "cloud.datalabeling.v1beta1.OutputConfig\""
- + "\215\001\n\033ImportDataOperationMetadata\022\017\n\007datas"
- + "et\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\0132\022.goo"
- + "gle.rpc.Status\022/\n\013create_time\030\003 \001(\0132\032.go"
- + "ogle.protobuf.Timestamp\"\215\001\n\033ExportDataOp"
- + "erationMetadata\022\017\n\007dataset\030\001 \001(\t\022,\n\020part"
- + "ial_failures\030\002 \003(\0132\022.google.rpc.Status\022/"
- + "\n\013create_time\030\003 \001(\0132\032.google.protobuf.Ti"
- + "mestamp\"\214\014\n\026LabelOperationMetadata\022t\n\034im"
- + "age_classification_details\030\003 \001(\0132L.googl"
- + "e.cloud.datalabeling.v1beta1.LabelImageC"
- + "lassificationOperationMetadataH\000\022o\n\032imag"
- + "e_bounding_box_details\030\004 \001(\0132I.google.cl"
- + "oud.datalabeling.v1beta1.LabelImageBound"
- + "ingBoxOperationMetadataH\000\022q\n\033image_bound"
- + "ing_poly_details\030\013 \001(\0132J.google.cloud.da"
- + "talabeling.v1beta1.LabelImageBoundingPol"
- + "yOperationMetadataH\000\022\200\001\n#image_oriented_"
- + "bounding_box_details\030\016 \001(\0132Q.google.clou"
- + "d.datalabeling.v1beta1.LabelImageOriente"
- + "dBoundingBoxOperationMetadataH\000\022h\n\026image"
- + "_polyline_details\030\014 \001(\0132F.google.cloud.d"
- + "atalabeling.v1beta1.LabelImagePolylineOp"
- + "erationMetadataH\000\022p\n\032image_segmentation_"
- + "details\030\017 \001(\0132J.google.cloud.datalabelin"
- + "g.v1beta1.LabelImageSegmentationOperatio"
- + "nMetadataH\000\022t\n\034video_classification_deta"
- + "ils\030\005 \001(\0132L.google.cloud.datalabeling.v1"
- + "beta1.LabelVideoClassificationOperationM"
- + "etadataH\000\022w\n\036video_object_detection_deta"
- + "ils\030\006 \001(\0132M.google.cloud.datalabeling.v1"
- + "beta1.LabelVideoObjectDetectionOperation"
- + "MetadataH\000\022u\n\035video_object_tracking_deta"
- + "ils\030\007 \001(\0132L.google.cloud.datalabeling.v1"
- + "beta1.LabelVideoObjectTrackingOperationM"
- + "etadataH\000\022b\n\023video_event_details\030\010 \001(\0132C"
- + ".google.cloud.datalabeling.v1beta1.Label"
- + "VideoEventOperationMetadataH\000\022r\n\033text_cl"
- + "assification_details\030\t \001(\0132K.google.clou"
- + "d.datalabeling.v1beta1.LabelTextClassifi"
- + "cationOperationMetadataH\000\022w\n\036text_entity"
- + "_extraction_details\030\r \001(\0132M.google.cloud"
- + ".datalabeling.v1beta1.LabelTextEntityExt"
- + "ractionOperationMetadataH\000\022\030\n\020progress_p"
- + "ercent\030\001 \001(\005\022,\n\020partial_failures\030\002 \003(\0132\022"
- + ".google.rpc.Status\022/\n\013create_time\030\020 \001(\0132"
- + "\032.google.protobuf.TimestampB\t\n\007details\"{"
- + "\n)LabelImageClassificationOperationMetad"
- + "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud"
- + ".datalabeling.v1beta1.HumanAnnotationCon"
- + "fig\"x\n&LabelImageBoundingBoxOperationMet"
- + "adata\022N\n\014basic_config\030\001 \001(\01328.google.clo"
- + "ud.datalabeling.v1beta1.HumanAnnotationC"
- + "onfig\"\200\001\n.LabelImageOrientedBoundingBoxO"
+ + "v1beta1\032/google/cloud/datalabeling/v1bet"
+ + "a1/dataset.proto\032?google/cloud/datalabel"
+ + "ing/v1beta1/human_annotation_config.prot"
+ + "o\032\037google/protobuf/timestamp.proto\032\027goog"
+ + "le/rpc/status.proto\"Y\n\033ImportDataOperati"
+ + "onResponse\022\017\n\007dataset\030\001 \001(\t\022\023\n\013total_cou"
+ + "nt\030\002 \001(\005\022\024\n\014import_count\030\003 \001(\005\"\345\001\n\033Expor"
+ + "tDataOperationResponse\022\017\n\007dataset\030\001 \001(\t\022"
+ + "\023\n\013total_count\030\002 \001(\005\022\024\n\014export_count\030\003 \001"
+ + "(\005\022B\n\013label_stats\030\004 \001(\0132-.google.cloud.d"
+ + "atalabeling.v1beta1.LabelStats\022F\n\routput"
+ + "_config\030\005 \001(\0132/.google.cloud.datalabelin"
+ + "g.v1beta1.OutputConfig\"\215\001\n\033ImportDataOpe"
+ + "rationMetadata\022\017\n\007dataset\030\001 \001(\t\022,\n\020parti"
+ + "al_failures\030\002 \003(\0132\022.google.rpc.Status\022/\n"
+ + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim"
+ + "estamp\"\215\001\n\033ExportDataOperationMetadata\022\017"
+ + "\n\007dataset\030\001 \001(\t\022,\n\020partial_failures\030\002 \003("
+ + "\0132\022.google.rpc.Status\022/\n\013create_time\030\003 \001"
+ + "(\0132\032.google.protobuf.Timestamp\"\214\014\n\026Label"
+ + "OperationMetadata\022t\n\034image_classificatio"
+ + "n_details\030\003 \001(\0132L.google.cloud.datalabel"
+ + "ing.v1beta1.LabelImageClassificationOper"
+ + "ationMetadataH\000\022o\n\032image_bounding_box_de"
+ + "tails\030\004 \001(\0132I.google.cloud.datalabeling."
+ + "v1beta1.LabelImageBoundingBoxOperationMe"
+ + "tadataH\000\022q\n\033image_bounding_poly_details\030"
+ + "\013 \001(\0132J.google.cloud.datalabeling.v1beta"
+ + "1.LabelImageBoundingPolyOperationMetadat"
+ + "aH\000\022\200\001\n#image_oriented_bounding_box_deta"
+ + "ils\030\016 \001(\0132Q.google.cloud.datalabeling.v1"
+ + "beta1.LabelImageOrientedBoundingBoxOpera"
+ + "tionMetadataH\000\022h\n\026image_polyline_details"
+ + "\030\014 \001(\0132F.google.cloud.datalabeling.v1bet"
+ + "a1.LabelImagePolylineOperationMetadataH\000"
+ + "\022p\n\032image_segmentation_details\030\017 \001(\0132J.g"
+ + "oogle.cloud.datalabeling.v1beta1.LabelIm"
+ + "ageSegmentationOperationMetadataH\000\022t\n\034vi"
+ + "deo_classification_details\030\005 \001(\0132L.googl"
+ + "e.cloud.datalabeling.v1beta1.LabelVideoC"
+ + "lassificationOperationMetadataH\000\022w\n\036vide"
+ + "o_object_detection_details\030\006 \001(\0132M.googl"
+ + "e.cloud.datalabeling.v1beta1.LabelVideoO"
+ + "bjectDetectionOperationMetadataH\000\022u\n\035vid"
+ + "eo_object_tracking_details\030\007 \001(\0132L.googl"
+ + "e.cloud.datalabeling.v1beta1.LabelVideoO"
+ + "bjectTrackingOperationMetadataH\000\022b\n\023vide"
+ + "o_event_details\030\010 \001(\0132C.google.cloud.dat"
+ + "alabeling.v1beta1.LabelVideoEventOperati"
+ + "onMetadataH\000\022r\n\033text_classification_deta"
+ + "ils\030\t \001(\0132K.google.cloud.datalabeling.v1"
+ + "beta1.LabelTextClassificationOperationMe"
+ + "tadataH\000\022w\n\036text_entity_extraction_detai"
+ + "ls\030\r \001(\0132M.google.cloud.datalabeling.v1b"
+ + "eta1.LabelTextEntityExtractionOperationM"
+ + "etadataH\000\022\030\n\020progress_percent\030\001 \001(\005\022,\n\020p"
+ + "artial_failures\030\002 \003(\0132\022.google.rpc.Statu"
+ + "s\022/\n\013create_time\030\020 \001(\0132\032.google.protobuf"
+ + ".TimestampB\t\n\007details\"{\n)LabelImageClass"
+ + "ificationOperationMetadata\022N\n\014basic_conf"
+ + "ig\030\001 \001(\01328.google.cloud.datalabeling.v1b"
+ + "eta1.HumanAnnotationConfig\"x\n&LabelImage"
+ + "BoundingBoxOperationMetadata\022N\n\014basic_co"
+ + "nfig\030\001 \001(\01328.google.cloud.datalabeling.v"
+ + "1beta1.HumanAnnotationConfig\"\200\001\n.LabelIm"
+ + "ageOrientedBoundingBoxOperationMetadata\022"
+ + "N\n\014basic_config\030\001 \001(\01328.google.cloud.dat"
+ + "alabeling.v1beta1.HumanAnnotationConfig\""
+ + "y\n\'LabelImageBoundingPolyOperationMetada"
+ + "ta\022N\n\014basic_config\030\001 \001(\01328.google.cloud."
+ + "datalabeling.v1beta1.HumanAnnotationConf"
+ + "ig\"u\n#LabelImagePolylineOperationMetadat"
+ + "a\022N\n\014basic_config\030\001 \001(\01328.google.cloud.d"
+ + "atalabeling.v1beta1.HumanAnnotationConfi"
+ + "g\"y\n\'LabelImageSegmentationOperationMeta"
+ + "data\022N\n\014basic_config\030\001 \001(\01328.google.clou"
+ + "d.datalabeling.v1beta1.HumanAnnotationCo"
+ + "nfig\"{\n)LabelVideoClassificationOperatio"
+ + "nMetadata\022N\n\014basic_config\030\001 \001(\01328.google"
+ + ".cloud.datalabeling.v1beta1.HumanAnnotat"
+ + "ionConfig\"|\n*LabelVideoObjectDetectionOp"
+ + "erationMetadata\022N\n\014basic_config\030\001 \001(\01328."
+ + "google.cloud.datalabeling.v1beta1.HumanA"
+ + "nnotationConfig\"{\n)LabelVideoObjectTrack"
+ + "ingOperationMetadata\022N\n\014basic_config\030\001 \001"
+ + "(\01328.google.cloud.datalabeling.v1beta1.H"
+ + "umanAnnotationConfig\"r\n LabelVideoEventO"
+ "perationMetadata\022N\n\014basic_config\030\001 \001(\01328"
+ ".google.cloud.datalabeling.v1beta1.Human"
- + "AnnotationConfig\"y\n\'LabelImageBoundingPo"
- + "lyOperationMetadata\022N\n\014basic_config\030\001 \001("
- + "\01328.google.cloud.datalabeling.v1beta1.Hu"
- + "manAnnotationConfig\"u\n#LabelImagePolylin"
- + "eOperationMetadata\022N\n\014basic_config\030\001 \001(\013"
- + "28.google.cloud.datalabeling.v1beta1.Hum"
- + "anAnnotationConfig\"y\n\'LabelImageSegmenta"
- + "tionOperationMetadata\022N\n\014basic_config\030\001 "
- + "\001(\01328.google.cloud.datalabeling.v1beta1."
- + "HumanAnnotationConfig\"{\n)LabelVideoClass"
- + "ificationOperationMetadata\022N\n\014basic_conf"
+ + "AnnotationConfig\"z\n(LabelTextClassificat"
+ + "ionOperationMetadata\022N\n\014basic_config\030\001 \001"
+ + "(\01328.google.cloud.datalabeling.v1beta1.H"
+ + "umanAnnotationConfig\"|\n*LabelTextEntityE"
+ + "xtractionOperationMetadata\022N\n\014basic_conf"
+ "ig\030\001 \001(\01328.google.cloud.datalabeling.v1b"
- + "eta1.HumanAnnotationConfig\"|\n*LabelVideo"
- + "ObjectDetectionOperationMetadata\022N\n\014basi"
- + "c_config\030\001 \001(\01328.google.cloud.datalabeli"
- + "ng.v1beta1.HumanAnnotationConfig\"{\n)Labe"
- + "lVideoObjectTrackingOperationMetadata\022N\n"
- + "\014basic_config\030\001 \001(\01328.google.cloud.datal"
- + "abeling.v1beta1.HumanAnnotationConfig\"r\n"
- + " LabelVideoEventOperationMetadata\022N\n\014bas"
- + "ic_config\030\001 \001(\01328.google.cloud.datalabel"
- + "ing.v1beta1.HumanAnnotationConfig\"z\n(Lab"
- + "elTextClassificationOperationMetadata\022N\n"
- + "\014basic_config\030\001 \001(\01328.google.cloud.datal"
- + "abeling.v1beta1.HumanAnnotationConfig\"|\n"
- + "*LabelTextEntityExtractionOperationMetad"
- + "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud"
- + ".datalabeling.v1beta1.HumanAnnotationCon"
- + "fig\"\217\001\n\031CreateInstructionMetadata\022\023\n\013ins"
- + "truction\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\013"
- + "2\022.google.rpc.Status\022/\n\013create_time\030\003 \001("
- + "\0132\032.google.protobuf.TimestampB\347\001\n%com.go"
- + "ogle.cloud.datalabeling.v1beta1P\001ZMgoogl"
- + "e.golang.org/genproto/googleapis/cloud/d"
- + "atalabeling/v1beta1;datalabeling\252\002!Googl"
- + "e.Cloud.DataLabeling.V1Beta1\312\002!Google\\Cl"
- + "oud\\DataLabeling\\V1beta1\352\002$Google::Cloud"
- + "::DataLabeling::V1beta1b\006proto3"
+ + "eta1.HumanAnnotationConfig\"\217\001\n\031CreateIns"
+ + "tructionMetadata\022\023\n\013instruction\030\001 \001(\t\022,\n"
+ + "\020partial_failures\030\002 \003(\0132\022.google.rpc.Sta"
+ + "tus\022/\n\013create_time\030\003 \001(\0132\032.google.protob"
+ + "uf.TimestampB\347\001\n%com.google.cloud.datala"
+ + "beling.v1beta1P\001ZMgoogle.golang.org/genp"
+ + "roto/googleapis/cloud/datalabeling/v1bet"
+ + "a1;datalabeling\252\002!Google.Cloud.DataLabel"
+ + "ing.V1Beta1\312\002!Google\\Cloud\\DataLabeling\\"
+ + "V1beta1\352\002$Google::Cloud::DataLabeling::V"
+ + "1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
- com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(),
com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
@@ -388,8 +385,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Instruction", "PartialFailures", "CreateTime",
});
- com.google.api.AnnotationsProto.getDescriptor();
- com.google.api.ResourceProto.getDescriptor();
com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor();
com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto
index 7d629b25..d62cbfd1 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto
@@ -17,8 +17,6 @@ syntax = "proto3";
package google.cloud.datalabeling.v1beta1;
-import "google/api/annotations.proto";
-import "google/api/resource.proto";
import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
import "google/protobuf/duration.proto";
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
index eb9b04b8..7670ae6a 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
@@ -17,7 +17,6 @@ syntax = "proto3";
package google.cloud.datalabeling.v1beta1;
-import "google/api/annotations.proto";
import "google/api/resource.proto";
option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto
index 4aebde40..a9ca0fc9 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto
@@ -17,9 +17,7 @@ syntax = "proto3";
package google.cloud.datalabeling.v1beta1;
-import "google/api/annotations.proto";
import "google/protobuf/duration.proto";
-import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto
index cf21b190..557279fa 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto
@@ -17,7 +17,6 @@ syntax = "proto3";
package google.cloud.datalabeling.v1beta1;
-import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/datalabeling/v1beta1/annotation.proto";
import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto
index 18d3719c..950fa82c 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto
@@ -17,7 +17,6 @@ syntax = "proto3";
package google.cloud.datalabeling.v1beta1;
-import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/datalabeling/v1beta1/annotation.proto";
import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto
index 6f54ad19..d40f8f20 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto
@@ -17,7 +17,6 @@ syntax = "proto3";
package google.cloud.datalabeling.v1beta1;
-import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/datalabeling/v1beta1/dataset.proto";
import "google/cloud/datalabeling/v1beta1/evaluation.proto";
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
index a05bd30f..9cc2424b 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
@@ -17,7 +17,6 @@ syntax = "proto3";
package google.cloud.datalabeling.v1beta1;
-import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "google/protobuf/duration.proto";
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto
index 15bf6958..9b19d32f 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto
@@ -17,7 +17,6 @@ syntax = "proto3";
package google.cloud.datalabeling.v1beta1;
-import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/datalabeling/v1beta1/dataset.proto";
import "google/protobuf/timestamp.proto";
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto
index 49df6d22..02d596fc 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto
@@ -17,8 +17,6 @@ syntax = "proto3";
package google.cloud.datalabeling.v1beta1;
-import "google/api/annotations.proto";
-import "google/api/resource.proto";
import "google/cloud/datalabeling/v1beta1/dataset.proto";
import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
import "google/protobuf/timestamp.proto";
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index fe270de7..d2c2ffe1 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-datalabeling
- 0.123.1
+ 0.123.3
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 828d44b2..622fe864 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-datalabeling
- 0.123.1
+ 0.123.3
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java
new file mode 100644
index 00000000..76b40b7d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings;
+import com.google.cloud.datalabeling.v1beta1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateSetCredentialsProvider();
+ }
+
+ public static void syncCreateSetCredentialsProvider() throws Exception {
+ // 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))
+ .build();
+ DataLabelingServiceClient dataLabelingServiceClient =
+ DataLabelingServiceClient.create(dataLabelingServiceSettings);
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_create_setcredentialsprovider_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java
new file mode 100644
index 00000000..b75f8a58
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_create_setendpoint_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings;
+import com.google.cloud.datalabeling.v1beta1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateSetEndpoint();
+ }
+
+ public static void syncCreateSetEndpoint() throws Exception {
+ // 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 =
+ DataLabelingServiceClient.create(dataLabelingServiceSettings);
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_create_setendpoint_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java
new file mode 100644
index 00000000..ef2ccb4d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class AsyncCreateAnnotationSpecSet {
+
+ public static void main(String[] args) throws Exception {
+ asyncCreateAnnotationSpecSet();
+ }
+
+ public static void asyncCreateAnnotationSpecSet() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setAnnotationSpecSet(AnnotationSpecSet.newBuilder().build())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.createAnnotationSpecSetCallable().futureCall(request);
+ // Do something.
+ AnnotationSpecSet response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java
new file mode 100644
index 00000000..ce007d7d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateAnnotationSpecSet {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateAnnotationSpecSet();
+ }
+
+ public static void syncCreateAnnotationSpecSet() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setAnnotationSpecSet(AnnotationSpecSet.newBuilder().build())
+ .build();
+ AnnotationSpecSet response = dataLabelingServiceClient.createAnnotationSpecSet(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java
new file mode 100644
index 00000000..c9b07a8b
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_projectnameannotationspecset_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateAnnotationSpecSetProjectnameAnnotationspecset {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateAnnotationSpecSetProjectnameAnnotationspecset();
+ }
+
+ public static void syncCreateAnnotationSpecSetProjectnameAnnotationspecset() throws Exception {
+ // 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();
+ AnnotationSpecSet response =
+ dataLabelingServiceClient.createAnnotationSpecSet(parent, annotationSpecSet);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_projectnameannotationspecset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java
new file mode 100644
index 00000000..68331adb
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_stringannotationspecset_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateAnnotationSpecSetStringAnnotationspecset {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateAnnotationSpecSetStringAnnotationspecset();
+ }
+
+ public static void syncCreateAnnotationSpecSetStringAnnotationspecset() throws Exception {
+ // 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();
+ AnnotationSpecSet response =
+ dataLabelingServiceClient.createAnnotationSpecSet(parent, annotationSpecSet);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_stringannotationspecset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java
new file mode 100644
index 00000000..cdf2f8ee
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class AsyncCreateDataset {
+
+ public static void main(String[] args) throws Exception {
+ asyncCreateDataset();
+ }
+
+ public static void asyncCreateDataset() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setDataset(Dataset.newBuilder().build())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.createDatasetCallable().futureCall(request);
+ // Do something.
+ Dataset response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java
new file mode 100644
index 00000000..6ee2413d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_sync]
+import com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateDataset {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateDataset();
+ }
+
+ public static void syncCreateDataset() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setDataset(Dataset.newBuilder().build())
+ .build();
+ Dataset response = dataLabelingServiceClient.createDataset(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java
new file mode 100644
index 00000000..6ffa02c0
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_projectnamedataset_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateDatasetProjectnameDataset {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateDatasetProjectnameDataset();
+ }
+
+ public static void syncCreateDatasetProjectnameDataset() throws Exception {
+ // 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();
+ Dataset response = dataLabelingServiceClient.createDataset(parent, dataset);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_projectnamedataset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java
new file mode 100644
index 00000000..d589af31
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_stringdataset_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateDatasetStringDataset {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateDatasetStringDataset();
+ }
+
+ public static void syncCreateDatasetStringDataset() throws Exception {
+ // 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();
+ Dataset response = dataLabelingServiceClient.createDataset(parent, dataset);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_stringdataset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java
new file mode 100644
index 00000000..ed00cad3
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createevaluationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class AsyncCreateEvaluationJob {
+
+ public static void main(String[] args) throws Exception {
+ asyncCreateEvaluationJob();
+ }
+
+ public static void asyncCreateEvaluationJob() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setJob(EvaluationJob.newBuilder().build())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.createEvaluationJobCallable().futureCall(request);
+ // Do something.
+ EvaluationJob response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createevaluationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java
new file mode 100644
index 00000000..a2917e86
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createevaluationjob_sync]
+import com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateEvaluationJob {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateEvaluationJob();
+ }
+
+ public static void syncCreateEvaluationJob() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setJob(EvaluationJob.newBuilder().build())
+ .build();
+ EvaluationJob response = dataLabelingServiceClient.createEvaluationJob(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createevaluationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java
new file mode 100644
index 00000000..1894e85b
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createevaluationjob_projectnameevaluationjob_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateEvaluationJobProjectnameEvaluationjob {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateEvaluationJobProjectnameEvaluationjob();
+ }
+
+ public static void syncCreateEvaluationJobProjectnameEvaluationjob() throws Exception {
+ // 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();
+ EvaluationJob response = dataLabelingServiceClient.createEvaluationJob(parent, job);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createevaluationjob_projectnameevaluationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java
new file mode 100644
index 00000000..87e43379
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createevaluationjob_stringevaluationjob_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateEvaluationJobStringEvaluationjob {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateEvaluationJobStringEvaluationjob();
+ }
+
+ public static void syncCreateEvaluationJobStringEvaluationjob() throws Exception {
+ // 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();
+ EvaluationJob response = dataLabelingServiceClient.createEvaluationJob(parent, job);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createevaluationjob_stringevaluationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java
new file mode 100644
index 00000000..38fe517b
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+import com.google.longrunning.Operation;
+
+public class AsyncCreateInstruction {
+
+ public static void main(String[] args) throws Exception {
+ asyncCreateInstruction();
+ }
+
+ public static void asyncCreateInstruction() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setInstruction(Instruction.newBuilder().build())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.createInstructionCallable().futureCall(request);
+ // Do something.
+ Operation response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java
new file mode 100644
index 00000000..154601c7
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata;
+import com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class AsyncCreateInstructionLRO {
+
+ public static void main(String[] args) throws Exception {
+ asyncCreateInstructionLRO();
+ }
+
+ public static void asyncCreateInstructionLRO() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setInstruction(Instruction.newBuilder().build())
+ .build();
+ OperationFuture future =
+ dataLabelingServiceClient.createInstructionOperationCallable().futureCall(request);
+ // Do something.
+ Instruction response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java
new file mode 100644
index 00000000..28da0e79
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_sync]
+import com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateInstruction {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateInstruction();
+ }
+
+ public static void syncCreateInstruction() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setInstruction(Instruction.newBuilder().build())
+ .build();
+ Instruction response = dataLabelingServiceClient.createInstructionAsync(request).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java
new file mode 100644
index 00000000..1deccd1e
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_projectnameinstruction_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateInstructionProjectnameInstruction {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateInstructionProjectnameInstruction();
+ }
+
+ public static void syncCreateInstructionProjectnameInstruction() throws Exception {
+ // 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();
+ Instruction response =
+ dataLabelingServiceClient.createInstructionAsync(parent, instruction).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_projectnameinstruction_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java
new file mode 100644
index 00000000..fc823202
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_stringinstruction_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncCreateInstructionStringInstruction {
+
+ public static void main(String[] args) throws Exception {
+ syncCreateInstructionStringInstruction();
+ }
+
+ public static void syncCreateInstructionStringInstruction() throws Exception {
+ // 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();
+ Instruction response =
+ dataLabelingServiceClient.createInstructionAsync(parent, instruction).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createinstruction_stringinstruction_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java
new file mode 100644
index 00000000..8950a95a
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotateddataset_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteAnnotatedDataset {
+
+ public static void main(String[] args) throws Exception {
+ asyncDeleteAnnotatedDataset();
+ }
+
+ public static void asyncDeleteAnnotatedDataset() throws Exception {
+ // 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()
+ .setName(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.deleteAnnotatedDatasetCallable().futureCall(request);
+ // Do something.
+ future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotateddataset_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java
new file mode 100644
index 00000000..50ac382c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotateddataset_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteAnnotatedDataset {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteAnnotatedDataset();
+ }
+
+ public static void syncDeleteAnnotatedDataset() throws Exception {
+ // 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()
+ .setName(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .build();
+ dataLabelingServiceClient.deleteAnnotatedDataset(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotateddataset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java
new file mode 100644
index 00000000..8061425b
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotationspecset_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteAnnotationSpecSet {
+
+ public static void main(String[] args) throws Exception {
+ asyncDeleteAnnotationSpecSet();
+ }
+
+ public static void asyncDeleteAnnotationSpecSet() throws Exception {
+ // 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()
+ .setName(AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.deleteAnnotationSpecSetCallable().futureCall(request);
+ // Do something.
+ future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotationspecset_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java
new file mode 100644
index 00000000..de81bddb
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotationspecset_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteAnnotationSpecSet {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteAnnotationSpecSet();
+ }
+
+ public static void syncDeleteAnnotationSpecSet() throws Exception {
+ // 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()
+ .setName(AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]").toString())
+ .build();
+ dataLabelingServiceClient.deleteAnnotationSpecSet(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotationspecset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java
new file mode 100644
index 00000000..c92e302d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotationspecset_annotationspecsetname_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteAnnotationSpecSetAnnotationspecsetname {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteAnnotationSpecSetAnnotationspecsetname();
+ }
+
+ public static void syncDeleteAnnotationSpecSetAnnotationspecsetname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotationspecset_annotationspecsetname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java
new file mode 100644
index 00000000..3684a0ef
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotationspecset_string_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteAnnotationSpecSetString {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteAnnotationSpecSetString();
+ }
+
+ public static void syncDeleteAnnotationSpecSetString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteannotationspecset_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java
new file mode 100644
index 00000000..9ea0e91c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deletedataset_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteDataset {
+
+ public static void main(String[] args) throws Exception {
+ asyncDeleteDataset();
+ }
+
+ public static void asyncDeleteDataset() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.deleteDatasetCallable().futureCall(request);
+ // Do something.
+ future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deletedataset_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java
new file mode 100644
index 00000000..756e90dd
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deletedataset_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteDataset {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteDataset();
+ }
+
+ public static void syncDeleteDataset() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .build();
+ dataLabelingServiceClient.deleteDataset(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deletedataset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java
new file mode 100644
index 00000000..feb59ed8
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deletedataset_datasetname_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteDatasetDatasetname {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteDatasetDatasetname();
+ }
+
+ public static void syncDeleteDatasetDatasetname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deletedataset_datasetname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java
new file mode 100644
index 00000000..76ccc647
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deletedataset_string_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteDatasetString {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteDatasetString();
+ }
+
+ public static void syncDeleteDatasetString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deletedataset_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java
new file mode 100644
index 00000000..9ee86a53
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteevaluationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteEvaluationJob {
+
+ public static void main(String[] args) throws Exception {
+ asyncDeleteEvaluationJob();
+ }
+
+ public static void asyncDeleteEvaluationJob() throws Exception {
+ // 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()
+ .setName(EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.deleteEvaluationJobCallable().futureCall(request);
+ // Do something.
+ future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteevaluationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java
new file mode 100644
index 00000000..d22b7dab
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteevaluationjob_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteEvaluationJob {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteEvaluationJob();
+ }
+
+ public static void syncDeleteEvaluationJob() throws Exception {
+ // 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()
+ .setName(EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString())
+ .build();
+ dataLabelingServiceClient.deleteEvaluationJob(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteevaluationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java
new file mode 100644
index 00000000..ad88441b
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteevaluationjob_evaluationjobname_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteEvaluationJobEvaluationjobname {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteEvaluationJobEvaluationjobname();
+ }
+
+ public static void syncDeleteEvaluationJobEvaluationjobname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteevaluationjob_evaluationjobname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java
new file mode 100644
index 00000000..a6e98fb9
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteevaluationjob_string_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteEvaluationJobString {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteEvaluationJobString();
+ }
+
+ public static void syncDeleteEvaluationJobString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteevaluationjob_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java
new file mode 100644
index 00000000..f672771d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteinstruction_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest;
+import com.google.cloud.datalabeling.v1beta1.InstructionName;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteInstruction {
+
+ public static void main(String[] args) throws Exception {
+ asyncDeleteInstruction();
+ }
+
+ public static void asyncDeleteInstruction() throws Exception {
+ // 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()
+ .setName(InstructionName.of("[PROJECT]", "[INSTRUCTION]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.deleteInstructionCallable().futureCall(request);
+ // Do something.
+ future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteinstruction_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java
new file mode 100644
index 00000000..b08c8d94
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteinstruction_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest;
+import com.google.cloud.datalabeling.v1beta1.InstructionName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteInstruction {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteInstruction();
+ }
+
+ public static void syncDeleteInstruction() throws Exception {
+ // 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()
+ .setName(InstructionName.of("[PROJECT]", "[INSTRUCTION]").toString())
+ .build();
+ dataLabelingServiceClient.deleteInstruction(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteinstruction_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java
new file mode 100644
index 00000000..0699911f
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteinstruction_instructionname_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.InstructionName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteInstructionInstructionname {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteInstructionInstructionname();
+ }
+
+ public static void syncDeleteInstructionInstructionname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteinstruction_instructionname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java
new file mode 100644
index 00000000..d896230c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_deleteinstruction_string_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.InstructionName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteInstructionString {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteInstructionString();
+ }
+
+ public static void syncDeleteInstructionString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_deleteinstruction_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java
new file mode 100644
index 00000000..25fb8f04
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ExportDataRequest;
+import com.google.cloud.datalabeling.v1beta1.OutputConfig;
+import com.google.longrunning.Operation;
+
+public class AsyncExportData {
+
+ public static void main(String[] args) throws Exception {
+ asyncExportData();
+ }
+
+ public static void asyncExportData() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setAnnotatedDataset(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .setFilter("filter-1274492040")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setUserEmailAddress("userEmailAddress-1844787165")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.exportDataCallable().futureCall(request);
+ // Do something.
+ Operation response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java
new file mode 100644
index 00000000..7be082df
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata;
+import com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.ExportDataRequest;
+import com.google.cloud.datalabeling.v1beta1.OutputConfig;
+
+public class AsyncExportDataLRO {
+
+ public static void main(String[] args) throws Exception {
+ asyncExportDataLRO();
+ }
+
+ public static void asyncExportDataLRO() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setAnnotatedDataset(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .setFilter("filter-1274492040")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setUserEmailAddress("userEmailAddress-1844787165")
+ .build();
+ OperationFuture future =
+ dataLabelingServiceClient.exportDataOperationCallable().futureCall(request);
+ // Do something.
+ ExportDataOperationResponse response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java
new file mode 100644
index 00000000..d349e6ea
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.ExportDataRequest;
+import com.google.cloud.datalabeling.v1beta1.OutputConfig;
+
+public class SyncExportData {
+
+ public static void main(String[] args) throws Exception {
+ syncExportData();
+ }
+
+ public static void syncExportData() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setAnnotatedDataset(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .setFilter("filter-1274492040")
+ .setOutputConfig(OutputConfig.newBuilder().build())
+ .setUserEmailAddress("userEmailAddress-1844787165")
+ .build();
+ ExportDataOperationResponse response =
+ dataLabelingServiceClient.exportDataAsync(request).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java
new file mode 100644
index 00000000..a0cf55ba
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_datasetnameannotateddatasetnamestringoutputconfig_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.OutputConfig;
+
+public class SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig {
+
+ public static void main(String[] args) throws Exception {
+ syncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig();
+ }
+
+ public static void syncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig()
+ throws Exception {
+ // 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 =
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+ String filter = "filter-1274492040";
+ OutputConfig outputConfig = OutputConfig.newBuilder().build();
+ ExportDataOperationResponse response =
+ dataLabelingServiceClient
+ .exportDataAsync(name, annotatedDataset, filter, outputConfig)
+ .get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_datasetnameannotateddatasetnamestringoutputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java
new file mode 100644
index 00000000..6f80dd56
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_datasetnamestringstringoutputconfig_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.OutputConfig;
+
+public class SyncExportDataDatasetnameStringStringOutputconfig {
+
+ public static void main(String[] args) throws Exception {
+ syncExportDataDatasetnameStringStringOutputconfig();
+ }
+
+ public static void syncExportDataDatasetnameStringStringOutputconfig() throws Exception {
+ // 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 =
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]").toString();
+ String filter = "filter-1274492040";
+ OutputConfig outputConfig = OutputConfig.newBuilder().build();
+ ExportDataOperationResponse response =
+ dataLabelingServiceClient
+ .exportDataAsync(name, annotatedDataset, filter, outputConfig)
+ .get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_datasetnamestringstringoutputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java
new file mode 100644
index 00000000..a022a38d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_stringannotateddatasetnamestringoutputconfig_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.OutputConfig;
+
+public class SyncExportDataStringAnnotateddatasetnameStringOutputconfig {
+
+ public static void main(String[] args) throws Exception {
+ syncExportDataStringAnnotateddatasetnameStringOutputconfig();
+ }
+
+ public static void syncExportDataStringAnnotateddatasetnameStringOutputconfig() throws Exception {
+ // 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 =
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+ String filter = "filter-1274492040";
+ OutputConfig outputConfig = OutputConfig.newBuilder().build();
+ ExportDataOperationResponse response =
+ dataLabelingServiceClient
+ .exportDataAsync(name, annotatedDataset, filter, outputConfig)
+ .get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_stringannotateddatasetnamestringoutputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java
new file mode 100644
index 00000000..10abfc46
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_stringstringstringoutputconfig_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.OutputConfig;
+
+public class SyncExportDataStringStringStringOutputconfig {
+
+ public static void main(String[] args) throws Exception {
+ syncExportDataStringStringStringOutputconfig();
+ }
+
+ public static void syncExportDataStringStringStringOutputconfig() throws Exception {
+ // 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 =
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]").toString();
+ String filter = "filter-1274492040";
+ OutputConfig outputConfig = OutputConfig.newBuilder().build();
+ ExportDataOperationResponse response =
+ dataLabelingServiceClient
+ .exportDataAsync(name, annotatedDataset, filter, outputConfig)
+ .get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_exportdata_stringstringstringoutputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java
new file mode 100644
index 00000000..596a5b0d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getannotateddataset_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest;
+
+public class AsyncGetAnnotatedDataset {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetAnnotatedDataset();
+ }
+
+ public static void asyncGetAnnotatedDataset() throws Exception {
+ // 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()
+ .setName(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.getAnnotatedDatasetCallable().futureCall(request);
+ // Do something.
+ AnnotatedDataset response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getannotateddataset_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java
new file mode 100644
index 00000000..f9ba2609
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getannotateddataset_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest;
+
+public class SyncGetAnnotatedDataset {
+
+ public static void main(String[] args) throws Exception {
+ syncGetAnnotatedDataset();
+ }
+
+ public static void syncGetAnnotatedDataset() throws Exception {
+ // 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()
+ .setName(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .build();
+ AnnotatedDataset response = dataLabelingServiceClient.getAnnotatedDataset(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getannotateddataset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java
new file mode 100644
index 00000000..620e5a26
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getannotateddataset_annotateddatasetname_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+
+public class SyncGetAnnotatedDatasetAnnotateddatasetname {
+
+ public static void main(String[] args) throws Exception {
+ syncGetAnnotatedDatasetAnnotateddatasetname();
+ }
+
+ public static void syncGetAnnotatedDatasetAnnotateddatasetname() throws Exception {
+ // 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]");
+ AnnotatedDataset response = dataLabelingServiceClient.getAnnotatedDataset(name);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getannotateddataset_annotateddatasetname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java
new file mode 100644
index 00000000..eff779f1
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getannotateddataset_string_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+
+public class SyncGetAnnotatedDatasetString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetAnnotatedDatasetString();
+ }
+
+ public static void syncGetAnnotatedDatasetString() throws Exception {
+ // 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();
+ AnnotatedDataset response = dataLabelingServiceClient.getAnnotatedDataset(name);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getannotateddataset_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java
new file mode 100644
index 00000000..b37a0989
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getannotationspecset_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest;
+
+public class AsyncGetAnnotationSpecSet {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetAnnotationSpecSet();
+ }
+
+ public static void asyncGetAnnotationSpecSet() throws Exception {
+ // 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()
+ .setName(AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.getAnnotationSpecSetCallable().futureCall(request);
+ // Do something.
+ AnnotationSpecSet response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getannotationspecset_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java
new file mode 100644
index 00000000..a53ff40e
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getannotationspecset_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest;
+
+public class SyncGetAnnotationSpecSet {
+
+ public static void main(String[] args) throws Exception {
+ syncGetAnnotationSpecSet();
+ }
+
+ public static void syncGetAnnotationSpecSet() throws Exception {
+ // 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()
+ .setName(AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]").toString())
+ .build();
+ AnnotationSpecSet response = dataLabelingServiceClient.getAnnotationSpecSet(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getannotationspecset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java
new file mode 100644
index 00000000..361d9a72
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getannotationspecset_annotationspecsetname_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+
+public class SyncGetAnnotationSpecSetAnnotationspecsetname {
+
+ public static void main(String[] args) throws Exception {
+ syncGetAnnotationSpecSetAnnotationspecsetname();
+ }
+
+ public static void syncGetAnnotationSpecSetAnnotationspecsetname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getannotationspecset_annotationspecsetname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java
new file mode 100644
index 00000000..6987b374
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getannotationspecset_string_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+
+public class SyncGetAnnotationSpecSetString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetAnnotationSpecSetString();
+ }
+
+ public static void syncGetAnnotationSpecSetString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getannotationspecset_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java
new file mode 100644
index 00000000..cc54cc49
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getdataitem_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataItem;
+import com.google.cloud.datalabeling.v1beta1.DataItemName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.GetDataItemRequest;
+
+public class AsyncGetDataItem {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetDataItem();
+ }
+
+ public static void asyncGetDataItem() throws Exception {
+ // 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()
+ .setName(DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.getDataItemCallable().futureCall(request);
+ // Do something.
+ DataItem response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getdataitem_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java
new file mode 100644
index 00000000..6aa86b0c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getdataitem_sync]
+import com.google.cloud.datalabeling.v1beta1.DataItem;
+import com.google.cloud.datalabeling.v1beta1.DataItemName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.GetDataItemRequest;
+
+public class SyncGetDataItem {
+
+ public static void main(String[] args) throws Exception {
+ syncGetDataItem();
+ }
+
+ public static void syncGetDataItem() throws Exception {
+ // 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()
+ .setName(DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]").toString())
+ .build();
+ DataItem response = dataLabelingServiceClient.getDataItem(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getdataitem_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java
new file mode 100644
index 00000000..3ce14c2f
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getdataitem_dataitemname_sync]
+import com.google.cloud.datalabeling.v1beta1.DataItem;
+import com.google.cloud.datalabeling.v1beta1.DataItemName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+
+public class SyncGetDataItemDataitemname {
+
+ public static void main(String[] args) throws Exception {
+ syncGetDataItemDataitemname();
+ }
+
+ public static void syncGetDataItemDataitemname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getdataitem_dataitemname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java
new file mode 100644
index 00000000..afc149e8
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getdataitem_string_sync]
+import com.google.cloud.datalabeling.v1beta1.DataItem;
+import com.google.cloud.datalabeling.v1beta1.DataItemName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+
+public class SyncGetDataItemString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetDataItemString();
+ }
+
+ public static void syncGetDataItemString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getdataitem_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java
new file mode 100644
index 00000000..35d59054
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getdataset_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.GetDatasetRequest;
+
+public class AsyncGetDataset {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetDataset();
+ }
+
+ public static void asyncGetDataset() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.getDatasetCallable().futureCall(request);
+ // Do something.
+ Dataset response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getdataset_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java
new file mode 100644
index 00000000..a0da8de9
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getdataset_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.GetDatasetRequest;
+
+public class SyncGetDataset {
+
+ public static void main(String[] args) throws Exception {
+ syncGetDataset();
+ }
+
+ public static void syncGetDataset() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .build();
+ Dataset response = dataLabelingServiceClient.getDataset(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getdataset_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java
new file mode 100644
index 00000000..0b49aa07
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getdataset_datasetname_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+
+public class SyncGetDatasetDatasetname {
+
+ public static void main(String[] args) throws Exception {
+ syncGetDatasetDatasetname();
+ }
+
+ public static void syncGetDatasetDatasetname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getdataset_datasetname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java
new file mode 100644
index 00000000..83080c40
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getdataset_string_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+
+public class SyncGetDatasetString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetDatasetString();
+ }
+
+ public static void syncGetDatasetString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getdataset_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java
new file mode 100644
index 00000000..a75835f7
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluation_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Evaluation;
+import com.google.cloud.datalabeling.v1beta1.EvaluationName;
+import com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest;
+
+public class AsyncGetEvaluation {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetEvaluation();
+ }
+
+ public static void asyncGetEvaluation() throws Exception {
+ // 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()
+ .setName(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.getEvaluationCallable().futureCall(request);
+ // Do something.
+ Evaluation response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluation_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java
new file mode 100644
index 00000000..a94871c7
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluation_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Evaluation;
+import com.google.cloud.datalabeling.v1beta1.EvaluationName;
+import com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest;
+
+public class SyncGetEvaluation {
+
+ public static void main(String[] args) throws Exception {
+ syncGetEvaluation();
+ }
+
+ public static void syncGetEvaluation() throws Exception {
+ // 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()
+ .setName(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString())
+ .build();
+ Evaluation response = dataLabelingServiceClient.getEvaluation(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluation_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java
new file mode 100644
index 00000000..0010ec89
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluation_evaluationname_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Evaluation;
+import com.google.cloud.datalabeling.v1beta1.EvaluationName;
+
+public class SyncGetEvaluationEvaluationname {
+
+ public static void main(String[] args) throws Exception {
+ syncGetEvaluationEvaluationname();
+ }
+
+ public static void syncGetEvaluationEvaluationname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluation_evaluationname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java
new file mode 100644
index 00000000..8f362818
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluation_string_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Evaluation;
+import com.google.cloud.datalabeling.v1beta1.EvaluationName;
+
+public class SyncGetEvaluationString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetEvaluationString();
+ }
+
+ public static void syncGetEvaluationString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluation_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java
new file mode 100644
index 00000000..f9ed09a4
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest;
+
+public class AsyncGetEvaluationJob {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetEvaluationJob();
+ }
+
+ public static void asyncGetEvaluationJob() throws Exception {
+ // 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()
+ .setName(EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.getEvaluationJobCallable().futureCall(request);
+ // Do something.
+ EvaluationJob response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java
new file mode 100644
index 00000000..9512bfa0
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluationjob_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest;
+
+public class SyncGetEvaluationJob {
+
+ public static void main(String[] args) throws Exception {
+ syncGetEvaluationJob();
+ }
+
+ public static void syncGetEvaluationJob() throws Exception {
+ // 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()
+ .setName(EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString())
+ .build();
+ EvaluationJob response = dataLabelingServiceClient.getEvaluationJob(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java
new file mode 100644
index 00000000..49ef2afb
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluationjob_evaluationjobname_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+
+public class SyncGetEvaluationJobEvaluationjobname {
+
+ public static void main(String[] args) throws Exception {
+ syncGetEvaluationJobEvaluationjobname();
+ }
+
+ public static void syncGetEvaluationJobEvaluationjobname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluationjob_evaluationjobname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java
new file mode 100644
index 00000000..cc23c9cf
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluationjob_string_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+
+public class SyncGetEvaluationJobString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetEvaluationJobString();
+ }
+
+ public static void syncGetEvaluationJobString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getevaluationjob_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java
new file mode 100644
index 00000000..2ff87ae6
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getexample_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Example;
+import com.google.cloud.datalabeling.v1beta1.ExampleName;
+import com.google.cloud.datalabeling.v1beta1.GetExampleRequest;
+
+public class AsyncGetExample {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetExample();
+ }
+
+ public static void asyncGetExample() throws Exception {
+ // 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()
+ .setName(
+ ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]")
+ .toString())
+ .setFilter("filter-1274492040")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.getExampleCallable().futureCall(request);
+ // Do something.
+ Example response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getexample_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java
new file mode 100644
index 00000000..c4252c63
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getexample_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Example;
+import com.google.cloud.datalabeling.v1beta1.ExampleName;
+import com.google.cloud.datalabeling.v1beta1.GetExampleRequest;
+
+public class SyncGetExample {
+
+ public static void main(String[] args) throws Exception {
+ syncGetExample();
+ }
+
+ public static void syncGetExample() throws Exception {
+ // 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()
+ .setName(
+ ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]")
+ .toString())
+ .setFilter("filter-1274492040")
+ .build();
+ Example response = dataLabelingServiceClient.getExample(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getexample_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java
new file mode 100644
index 00000000..3bc232f2
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getexample_examplenamestring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Example;
+import com.google.cloud.datalabeling.v1beta1.ExampleName;
+
+public class SyncGetExampleExamplenameString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetExampleExamplenameString();
+ }
+
+ public static void syncGetExampleExamplenameString() throws Exception {
+ // 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]");
+ String filter = "filter-1274492040";
+ Example response = dataLabelingServiceClient.getExample(name, filter);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getexample_examplenamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java
new file mode 100644
index 00000000..187daec2
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getexample_stringstring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Example;
+import com.google.cloud.datalabeling.v1beta1.ExampleName;
+
+public class SyncGetExampleStringString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetExampleStringString();
+ }
+
+ public static void syncGetExampleStringString() throws Exception {
+ // 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();
+ String filter = "filter-1274492040";
+ Example response = dataLabelingServiceClient.getExample(name, filter);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getexample_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java
new file mode 100644
index 00000000..adaf1500
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getinstruction_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.GetInstructionRequest;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.InstructionName;
+
+public class AsyncGetInstruction {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetInstruction();
+ }
+
+ public static void asyncGetInstruction() throws Exception {
+ // 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()
+ .setName(InstructionName.of("[PROJECT]", "[INSTRUCTION]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.getInstructionCallable().futureCall(request);
+ // Do something.
+ Instruction response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getinstruction_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java
new file mode 100644
index 00000000..9b1dd232
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getinstruction_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.GetInstructionRequest;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.InstructionName;
+
+public class SyncGetInstruction {
+
+ public static void main(String[] args) throws Exception {
+ syncGetInstruction();
+ }
+
+ public static void syncGetInstruction() throws Exception {
+ // 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()
+ .setName(InstructionName.of("[PROJECT]", "[INSTRUCTION]").toString())
+ .build();
+ Instruction response = dataLabelingServiceClient.getInstruction(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getinstruction_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java
new file mode 100644
index 00000000..45a7319e
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getinstruction_instructionname_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.InstructionName;
+
+public class SyncGetInstructionInstructionname {
+
+ public static void main(String[] args) throws Exception {
+ syncGetInstructionInstructionname();
+ }
+
+ public static void syncGetInstructionInstructionname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getinstruction_instructionname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java
new file mode 100644
index 00000000..02129b52
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_getinstruction_string_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.InstructionName;
+
+public class SyncGetInstructionString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetInstructionString();
+ }
+
+ public static void syncGetInstructionString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_getinstruction_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java
new file mode 100644
index 00000000..74ff9549
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ImportDataRequest;
+import com.google.cloud.datalabeling.v1beta1.InputConfig;
+import com.google.longrunning.Operation;
+
+public class AsyncImportData {
+
+ public static void main(String[] args) throws Exception {
+ asyncImportData();
+ }
+
+ public static void asyncImportData() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setInputConfig(InputConfig.newBuilder().build())
+ .setUserEmailAddress("userEmailAddress-1844787165")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.importDataCallable().futureCall(request);
+ // Do something.
+ Operation response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java
new file mode 100644
index 00000000..c22eb2d2
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata;
+import com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.ImportDataRequest;
+import com.google.cloud.datalabeling.v1beta1.InputConfig;
+
+public class AsyncImportDataLRO {
+
+ public static void main(String[] args) throws Exception {
+ asyncImportDataLRO();
+ }
+
+ public static void asyncImportDataLRO() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setInputConfig(InputConfig.newBuilder().build())
+ .setUserEmailAddress("userEmailAddress-1844787165")
+ .build();
+ OperationFuture future =
+ dataLabelingServiceClient.importDataOperationCallable().futureCall(request);
+ // Do something.
+ ImportDataOperationResponse response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java
new file mode 100644
index 00000000..113e35ab
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.ImportDataRequest;
+import com.google.cloud.datalabeling.v1beta1.InputConfig;
+
+public class SyncImportData {
+
+ public static void main(String[] args) throws Exception {
+ syncImportData();
+ }
+
+ public static void syncImportData() throws Exception {
+ // 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()
+ .setName(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setInputConfig(InputConfig.newBuilder().build())
+ .setUserEmailAddress("userEmailAddress-1844787165")
+ .build();
+ ImportDataOperationResponse response =
+ dataLabelingServiceClient.importDataAsync(request).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java
new file mode 100644
index 00000000..c9a54aaf
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_datasetnameinputconfig_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.InputConfig;
+
+public class SyncImportDataDatasetnameInputconfig {
+
+ public static void main(String[] args) throws Exception {
+ syncImportDataDatasetnameInputconfig();
+ }
+
+ public static void syncImportDataDatasetnameInputconfig() throws Exception {
+ // 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();
+ ImportDataOperationResponse response =
+ dataLabelingServiceClient.importDataAsync(name, inputConfig).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_datasetnameinputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java
new file mode 100644
index 00000000..bb376fa0
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_stringinputconfig_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse;
+import com.google.cloud.datalabeling.v1beta1.InputConfig;
+
+public class SyncImportDataStringInputconfig {
+
+ public static void main(String[] args) throws Exception {
+ syncImportDataStringInputconfig();
+ }
+
+ public static void syncImportDataStringInputconfig() throws Exception {
+ // 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();
+ ImportDataOperationResponse response =
+ dataLabelingServiceClient.importDataAsync(name, inputConfig).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_importdata_stringinputconfig_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java
new file mode 100644
index 00000000..c74b3782
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelImageRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncLabelImage {
+
+ public static void main(String[] args) throws Exception {
+ asyncLabelImage();
+ }
+
+ public static void asyncLabelImage() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setBasicConfig(HumanAnnotationConfig.newBuilder().build())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.labelImageCallable().futureCall(request);
+ // Do something.
+ Operation response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java
new file mode 100644
index 00000000..782d64f9
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelImageRequest;
+import com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata;
+
+public class AsyncLabelImageLRO {
+
+ public static void main(String[] args) throws Exception {
+ asyncLabelImageLRO();
+ }
+
+ public static void asyncLabelImageLRO() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setBasicConfig(HumanAnnotationConfig.newBuilder().build())
+ .build();
+ OperationFuture future =
+ dataLabelingServiceClient.labelImageOperationCallable().futureCall(request);
+ // Do something.
+ AnnotatedDataset response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java
new file mode 100644
index 00000000..3ae2a05a
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelImageRequest;
+
+public class SyncLabelImage {
+
+ public static void main(String[] args) throws Exception {
+ syncLabelImage();
+ }
+
+ public static void syncLabelImage() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setBasicConfig(HumanAnnotationConfig.newBuilder().build())
+ .build();
+ AnnotatedDataset response = dataLabelingServiceClient.labelImageAsync(request).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java
new file mode 100644
index 00000000..c961ee1f
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_datasetnamehumanannotationconfiglabelimagerequestfeature_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelImageRequest;
+
+public class SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature {
+
+ public static void main(String[] args) throws Exception {
+ syncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature();
+ }
+
+ public static void syncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature()
+ throws Exception {
+ // 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();
+ LabelImageRequest.Feature feature = LabelImageRequest.Feature.forNumber(0);
+ AnnotatedDataset response =
+ dataLabelingServiceClient.labelImageAsync(parent, basicConfig, feature).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_datasetnamehumanannotationconfiglabelimagerequestfeature_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java
new file mode 100644
index 00000000..396b1858
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_stringhumanannotationconfiglabelimagerequestfeature_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelImageRequest;
+
+public class SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature {
+
+ public static void main(String[] args) throws Exception {
+ syncLabelImageStringHumanannotationconfigLabelimagerequestfeature();
+ }
+
+ public static void syncLabelImageStringHumanannotationconfigLabelimagerequestfeature()
+ throws Exception {
+ // 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();
+ LabelImageRequest.Feature feature = LabelImageRequest.Feature.forNumber(0);
+ AnnotatedDataset response =
+ dataLabelingServiceClient.labelImageAsync(parent, basicConfig, feature).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelimage_stringhumanannotationconfiglabelimagerequestfeature_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java
new file mode 100644
index 00000000..319c1fd6
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelTextRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncLabelText {
+
+ public static void main(String[] args) throws Exception {
+ asyncLabelText();
+ }
+
+ public static void asyncLabelText() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setBasicConfig(HumanAnnotationConfig.newBuilder().build())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.labelTextCallable().futureCall(request);
+ // Do something.
+ Operation response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java
new file mode 100644
index 00000000..3f378b6a
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata;
+import com.google.cloud.datalabeling.v1beta1.LabelTextRequest;
+
+public class AsyncLabelTextLRO {
+
+ public static void main(String[] args) throws Exception {
+ asyncLabelTextLRO();
+ }
+
+ public static void asyncLabelTextLRO() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setBasicConfig(HumanAnnotationConfig.newBuilder().build())
+ .build();
+ OperationFuture future =
+ dataLabelingServiceClient.labelTextOperationCallable().futureCall(request);
+ // Do something.
+ AnnotatedDataset response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java
new file mode 100644
index 00000000..9d713b1d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelTextRequest;
+
+public class SyncLabelText {
+
+ public static void main(String[] args) throws Exception {
+ syncLabelText();
+ }
+
+ public static void syncLabelText() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setBasicConfig(HumanAnnotationConfig.newBuilder().build())
+ .build();
+ AnnotatedDataset response = dataLabelingServiceClient.labelTextAsync(request).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java
new file mode 100644
index 00000000..2f8f3326
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_datasetnamehumanannotationconfiglabeltextrequestfeature_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelTextRequest;
+
+public class SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature {
+
+ public static void main(String[] args) throws Exception {
+ syncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature();
+ }
+
+ public static void syncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature()
+ throws Exception {
+ // 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();
+ LabelTextRequest.Feature feature = LabelTextRequest.Feature.forNumber(0);
+ AnnotatedDataset response =
+ dataLabelingServiceClient.labelTextAsync(parent, basicConfig, feature).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_datasetnamehumanannotationconfiglabeltextrequestfeature_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java
new file mode 100644
index 00000000..5fd877b9
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_stringhumanannotationconfiglabeltextrequestfeature_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelTextRequest;
+
+public class SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature {
+
+ public static void main(String[] args) throws Exception {
+ syncLabelTextStringHumanannotationconfigLabeltextrequestfeature();
+ }
+
+ public static void syncLabelTextStringHumanannotationconfigLabeltextrequestfeature()
+ throws Exception {
+ // 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();
+ LabelTextRequest.Feature feature = LabelTextRequest.Feature.forNumber(0);
+ AnnotatedDataset response =
+ dataLabelingServiceClient.labelTextAsync(parent, basicConfig, feature).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labeltext_stringhumanannotationconfiglabeltextrequestfeature_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java
new file mode 100644
index 00000000..03be90a9
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelVideoRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncLabelVideo {
+
+ public static void main(String[] args) throws Exception {
+ asyncLabelVideo();
+ }
+
+ public static void asyncLabelVideo() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setBasicConfig(HumanAnnotationConfig.newBuilder().build())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.labelVideoCallable().futureCall(request);
+ // Do something.
+ Operation response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java
new file mode 100644
index 00000000..0edd94ff
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata;
+import com.google.cloud.datalabeling.v1beta1.LabelVideoRequest;
+
+public class AsyncLabelVideoLRO {
+
+ public static void main(String[] args) throws Exception {
+ asyncLabelVideoLRO();
+ }
+
+ public static void asyncLabelVideoLRO() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setBasicConfig(HumanAnnotationConfig.newBuilder().build())
+ .build();
+ OperationFuture future =
+ dataLabelingServiceClient.labelVideoOperationCallable().futureCall(request);
+ // Do something.
+ AnnotatedDataset response = future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java
new file mode 100644
index 00000000..e151149e
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelVideoRequest;
+
+public class SyncLabelVideo {
+
+ public static void main(String[] args) throws Exception {
+ syncLabelVideo();
+ }
+
+ public static void syncLabelVideo() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setBasicConfig(HumanAnnotationConfig.newBuilder().build())
+ .build();
+ AnnotatedDataset response = dataLabelingServiceClient.labelVideoAsync(request).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java
new file mode 100644
index 00000000..f58203e7
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_datasetnamehumanannotationconfiglabelvideorequestfeature_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelVideoRequest;
+
+public class SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature {
+
+ public static void main(String[] args) throws Exception {
+ syncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature();
+ }
+
+ public static void syncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature()
+ throws Exception {
+ // 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();
+ LabelVideoRequest.Feature feature = LabelVideoRequest.Feature.forNumber(0);
+ AnnotatedDataset response =
+ dataLabelingServiceClient.labelVideoAsync(parent, basicConfig, feature).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_datasetnamehumanannotationconfiglabelvideorequestfeature_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java
new file mode 100644
index 00000000..ac8f867c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_stringhumanannotationconfiglabelvideorequestfeature_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig;
+import com.google.cloud.datalabeling.v1beta1.LabelVideoRequest;
+
+public class SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature {
+
+ public static void main(String[] args) throws Exception {
+ syncLabelVideoStringHumanannotationconfigLabelvideorequestfeature();
+ }
+
+ public static void syncLabelVideoStringHumanannotationconfigLabelvideorequestfeature()
+ throws Exception {
+ // 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();
+ LabelVideoRequest.Feature feature = LabelVideoRequest.Feature.forNumber(0);
+ AnnotatedDataset response =
+ dataLabelingServiceClient.labelVideoAsync(parent, basicConfig, feature).get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_labelvideo_stringhumanannotationconfiglabelvideorequestfeature_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java
new file mode 100644
index 00000000..ac72ff92
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest;
+
+public class AsyncListAnnotatedDatasets {
+
+ public static void main(String[] args) throws Exception {
+ asyncListAnnotatedDatasets();
+ }
+
+ public static void asyncListAnnotatedDatasets() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.listAnnotatedDatasetsPagedCallable().futureCall(request);
+ // Do something.
+ for (AnnotatedDataset element : future.get().iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java
new file mode 100644
index 00000000..8ae9f1e5
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_paged_async]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest;
+import com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse;
+import com.google.common.base.Strings;
+
+public class AsyncListAnnotatedDatasetsPaged {
+
+ public static void main(String[] args) throws Exception {
+ asyncListAnnotatedDatasetsPaged();
+ }
+
+ public static void asyncListAnnotatedDatasetsPaged() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ while (true) {
+ ListAnnotatedDatasetsResponse response =
+ dataLabelingServiceClient.listAnnotatedDatasetsCallable().call(request);
+ for (AnnotatedDataset element : response.getAnnotatedDatasetsList()) {
+ // doThingsWith(element);
+ }
+ String nextPageToken = response.getNextPageToken();
+ if (!Strings.isNullOrEmpty(nextPageToken)) {
+ request = request.toBuilder().setPageToken(nextPageToken).build();
+ } else {
+ break;
+ }
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_paged_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java
new file mode 100644
index 00000000..3b151cd2
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest;
+
+public class SyncListAnnotatedDatasets {
+
+ public static void main(String[] args) throws Exception {
+ syncListAnnotatedDatasets();
+ }
+
+ public static void syncListAnnotatedDatasets() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ for (AnnotatedDataset element :
+ dataLabelingServiceClient.listAnnotatedDatasets(request).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java
new file mode 100644
index 00000000..c0c27ef6
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_datasetnamestring_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+
+public class SyncListAnnotatedDatasetsDatasetnameString {
+
+ public static void main(String[] args) throws Exception {
+ syncListAnnotatedDatasetsDatasetnameString();
+ }
+
+ public static void syncListAnnotatedDatasetsDatasetnameString() throws Exception {
+ // 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";
+ for (AnnotatedDataset element :
+ dataLabelingServiceClient.listAnnotatedDatasets(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_datasetnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java
new file mode 100644
index 00000000..23308628
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_stringstring_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+
+public class SyncListAnnotatedDatasetsStringString {
+
+ public static void main(String[] args) throws Exception {
+ syncListAnnotatedDatasetsStringString();
+ }
+
+ public static void syncListAnnotatedDatasetsStringString() throws Exception {
+ // 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";
+ for (AnnotatedDataset element :
+ dataLabelingServiceClient.listAnnotatedDatasets(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotateddatasets_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java
new file mode 100644
index 00000000..632edcd5
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class AsyncListAnnotationSpecSets {
+
+ public static void main(String[] args) throws Exception {
+ asyncListAnnotationSpecSets();
+ }
+
+ public static void asyncListAnnotationSpecSets() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.listAnnotationSpecSetsPagedCallable().futureCall(request);
+ // Do something.
+ for (AnnotationSpecSet element : future.get().iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java
new file mode 100644
index 00000000..fb40bd3a
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_paged_async]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest;
+import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+import com.google.common.base.Strings;
+
+public class AsyncListAnnotationSpecSetsPaged {
+
+ public static void main(String[] args) throws Exception {
+ asyncListAnnotationSpecSetsPaged();
+ }
+
+ public static void asyncListAnnotationSpecSetsPaged() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ while (true) {
+ ListAnnotationSpecSetsResponse response =
+ dataLabelingServiceClient.listAnnotationSpecSetsCallable().call(request);
+ for (AnnotationSpecSet element : response.getAnnotationSpecSetsList()) {
+ // doThingsWith(element);
+ }
+ String nextPageToken = response.getNextPageToken();
+ if (!Strings.isNullOrEmpty(nextPageToken)) {
+ request = request.toBuilder().setPageToken(nextPageToken).build();
+ } else {
+ break;
+ }
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_paged_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java
new file mode 100644
index 00000000..10ec0755
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListAnnotationSpecSets {
+
+ public static void main(String[] args) throws Exception {
+ syncListAnnotationSpecSets();
+ }
+
+ public static void syncListAnnotationSpecSets() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ for (AnnotationSpecSet element :
+ dataLabelingServiceClient.listAnnotationSpecSets(request).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java
new file mode 100644
index 00000000..f9c06317
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_projectnamestring_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListAnnotationSpecSetsProjectnameString {
+
+ public static void main(String[] args) throws Exception {
+ syncListAnnotationSpecSetsProjectnameString();
+ }
+
+ public static void syncListAnnotationSpecSetsProjectnameString() throws Exception {
+ // 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";
+ for (AnnotationSpecSet element :
+ dataLabelingServiceClient.listAnnotationSpecSets(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_projectnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java
new file mode 100644
index 00000000..7f96d929
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_stringstring_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListAnnotationSpecSetsStringString {
+
+ public static void main(String[] args) throws Exception {
+ syncListAnnotationSpecSetsStringString();
+ }
+
+ public static void syncListAnnotationSpecSetsStringString() throws Exception {
+ // 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";
+ for (AnnotationSpecSet element :
+ dataLabelingServiceClient.listAnnotationSpecSets(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listannotationspecsets_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java
new file mode 100644
index 00000000..f4b3537c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataItem;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest;
+
+public class AsyncListDataItems {
+
+ public static void main(String[] args) throws Exception {
+ asyncListDataItems();
+ }
+
+ public static void asyncListDataItems() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.listDataItemsPagedCallable().futureCall(request);
+ // Do something.
+ for (DataItem element : future.get().iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java
new file mode 100644
index 00000000..2acb0a02
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_paged_async]
+import com.google.cloud.datalabeling.v1beta1.DataItem;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest;
+import com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse;
+import com.google.common.base.Strings;
+
+public class AsyncListDataItemsPaged {
+
+ public static void main(String[] args) throws Exception {
+ asyncListDataItemsPaged();
+ }
+
+ public static void asyncListDataItemsPaged() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ while (true) {
+ ListDataItemsResponse response =
+ dataLabelingServiceClient.listDataItemsCallable().call(request);
+ for (DataItem element : response.getDataItemsList()) {
+ // doThingsWith(element);
+ }
+ String nextPageToken = response.getNextPageToken();
+ if (!Strings.isNullOrEmpty(nextPageToken)) {
+ request = request.toBuilder().setPageToken(nextPageToken).build();
+ } else {
+ break;
+ }
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_paged_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java
new file mode 100644
index 00000000..5d8037ef
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_sync]
+import com.google.cloud.datalabeling.v1beta1.DataItem;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+import com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest;
+
+public class SyncListDataItems {
+
+ public static void main(String[] args) throws Exception {
+ syncListDataItems();
+ }
+
+ public static void syncListDataItems() throws Exception {
+ // 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()
+ .setParent(DatasetName.of("[PROJECT]", "[DATASET]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ for (DataItem element : dataLabelingServiceClient.listDataItems(request).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java
new file mode 100644
index 00000000..a7d364fd
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_datasetnamestring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataItem;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+
+public class SyncListDataItemsDatasetnameString {
+
+ public static void main(String[] args) throws Exception {
+ syncListDataItemsDatasetnameString();
+ }
+
+ public static void syncListDataItemsDatasetnameString() throws Exception {
+ // 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";
+ for (DataItem element :
+ dataLabelingServiceClient.listDataItems(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_datasetnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java
new file mode 100644
index 00000000..1b728fdf
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_stringstring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataItem;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.DatasetName;
+
+public class SyncListDataItemsStringString {
+
+ public static void main(String[] args) throws Exception {
+ syncListDataItemsStringString();
+ }
+
+ public static void syncListDataItemsStringString() throws Exception {
+ // 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";
+ for (DataItem element :
+ dataLabelingServiceClient.listDataItems(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdataitems_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java
new file mode 100644
index 00000000..bc924ad6
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class AsyncListDatasets {
+
+ public static void main(String[] args) throws Exception {
+ asyncListDatasets();
+ }
+
+ public static void asyncListDatasets() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.listDatasetsPagedCallable().futureCall(request);
+ // Do something.
+ for (Dataset element : future.get().iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java
new file mode 100644
index 00000000..1f5486c3
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_paged_async]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest;
+import com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+import com.google.common.base.Strings;
+
+public class AsyncListDatasetsPaged {
+
+ public static void main(String[] args) throws Exception {
+ asyncListDatasetsPaged();
+ }
+
+ public static void asyncListDatasetsPaged() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ while (true) {
+ ListDatasetsResponse response =
+ dataLabelingServiceClient.listDatasetsCallable().call(request);
+ for (Dataset element : response.getDatasetsList()) {
+ // doThingsWith(element);
+ }
+ String nextPageToken = response.getNextPageToken();
+ if (!Strings.isNullOrEmpty(nextPageToken)) {
+ request = request.toBuilder().setPageToken(nextPageToken).build();
+ } else {
+ break;
+ }
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_paged_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java
new file mode 100644
index 00000000..d6edffb1
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListDatasets {
+
+ public static void main(String[] args) throws Exception {
+ syncListDatasets();
+ }
+
+ public static void syncListDatasets() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ for (Dataset element : dataLabelingServiceClient.listDatasets(request).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java
new file mode 100644
index 00000000..cf59e68d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_projectnamestring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListDatasetsProjectnameString {
+
+ public static void main(String[] args) throws Exception {
+ syncListDatasetsProjectnameString();
+ }
+
+ public static void syncListDatasetsProjectnameString() throws Exception {
+ // 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";
+ for (Dataset element : dataLabelingServiceClient.listDatasets(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_projectnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java
new file mode 100644
index 00000000..d4711453
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_stringstring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Dataset;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListDatasetsStringString {
+
+ public static void main(String[] args) throws Exception {
+ syncListDatasetsStringString();
+ }
+
+ public static void syncListDatasetsStringString() throws Exception {
+ // 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";
+ for (Dataset element : dataLabelingServiceClient.listDatasets(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listdatasets_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java
new file mode 100644
index 00000000..2e1e9e73
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class AsyncListEvaluationJobs {
+
+ public static void main(String[] args) throws Exception {
+ asyncListEvaluationJobs();
+ }
+
+ public static void asyncListEvaluationJobs() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.listEvaluationJobsPagedCallable().futureCall(request);
+ // Do something.
+ for (EvaluationJob element : future.get().iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java
new file mode 100644
index 00000000..77ed44b6
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_paged_async]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest;
+import com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+import com.google.common.base.Strings;
+
+public class AsyncListEvaluationJobsPaged {
+
+ public static void main(String[] args) throws Exception {
+ asyncListEvaluationJobsPaged();
+ }
+
+ public static void asyncListEvaluationJobsPaged() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ while (true) {
+ ListEvaluationJobsResponse response =
+ dataLabelingServiceClient.listEvaluationJobsCallable().call(request);
+ for (EvaluationJob element : response.getEvaluationJobsList()) {
+ // doThingsWith(element);
+ }
+ String nextPageToken = response.getNextPageToken();
+ if (!Strings.isNullOrEmpty(nextPageToken)) {
+ request = request.toBuilder().setPageToken(nextPageToken).build();
+ } else {
+ break;
+ }
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_paged_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java
new file mode 100644
index 00000000..5e933222
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListEvaluationJobs {
+
+ public static void main(String[] args) throws Exception {
+ syncListEvaluationJobs();
+ }
+
+ public static void syncListEvaluationJobs() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ for (EvaluationJob element :
+ dataLabelingServiceClient.listEvaluationJobs(request).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java
new file mode 100644
index 00000000..d6f74098
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_projectnamestring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListEvaluationJobsProjectnameString {
+
+ public static void main(String[] args) throws Exception {
+ syncListEvaluationJobsProjectnameString();
+ }
+
+ public static void syncListEvaluationJobsProjectnameString() throws Exception {
+ // 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";
+ for (EvaluationJob element :
+ dataLabelingServiceClient.listEvaluationJobs(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_projectnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java
new file mode 100644
index 00000000..081d9d46
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_stringstring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListEvaluationJobsStringString {
+
+ public static void main(String[] args) throws Exception {
+ syncListEvaluationJobsStringString();
+ }
+
+ public static void syncListEvaluationJobsStringString() throws Exception {
+ // 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";
+ for (EvaluationJob element :
+ dataLabelingServiceClient.listEvaluationJobs(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listevaluationjobs_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java
new file mode 100644
index 00000000..d342f951
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Example;
+import com.google.cloud.datalabeling.v1beta1.ListExamplesRequest;
+
+public class AsyncListExamples {
+
+ public static void main(String[] args) throws Exception {
+ asyncListExamples();
+ }
+
+ public static void asyncListExamples() throws Exception {
+ // 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()
+ .setParent(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.listExamplesPagedCallable().futureCall(request);
+ // Do something.
+ for (Example element : future.get().iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java
new file mode 100644
index 00000000..3f163a88
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_paged_async]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Example;
+import com.google.cloud.datalabeling.v1beta1.ListExamplesRequest;
+import com.google.cloud.datalabeling.v1beta1.ListExamplesResponse;
+import com.google.common.base.Strings;
+
+public class AsyncListExamplesPaged {
+
+ public static void main(String[] args) throws Exception {
+ asyncListExamplesPaged();
+ }
+
+ public static void asyncListExamplesPaged() throws Exception {
+ // 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()
+ .setParent(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ while (true) {
+ ListExamplesResponse response =
+ dataLabelingServiceClient.listExamplesCallable().call(request);
+ for (Example element : response.getExamplesList()) {
+ // doThingsWith(element);
+ }
+ String nextPageToken = response.getNextPageToken();
+ if (!Strings.isNullOrEmpty(nextPageToken)) {
+ request = request.toBuilder().setPageToken(nextPageToken).build();
+ } else {
+ break;
+ }
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_paged_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java
new file mode 100644
index 00000000..05547e07
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Example;
+import com.google.cloud.datalabeling.v1beta1.ListExamplesRequest;
+
+public class SyncListExamples {
+
+ public static void main(String[] args) throws Exception {
+ syncListExamples();
+ }
+
+ public static void syncListExamples() throws Exception {
+ // 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()
+ .setParent(
+ AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]")
+ .toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ for (Example element : dataLabelingServiceClient.listExamples(request).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java
new file mode 100644
index 00000000..5aab18f7
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_annotateddatasetnamestring_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Example;
+
+public class SyncListExamplesAnnotateddatasetnameString {
+
+ public static void main(String[] args) throws Exception {
+ syncListExamplesAnnotateddatasetnameString();
+ }
+
+ public static void syncListExamplesAnnotateddatasetnameString() throws Exception {
+ // 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]");
+ String filter = "filter-1274492040";
+ for (Example element : dataLabelingServiceClient.listExamples(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_annotateddatasetnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java
new file mode 100644
index 00000000..d8659ad0
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_stringstring_sync]
+import com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetName;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Example;
+
+public class SyncListExamplesStringString {
+
+ public static void main(String[] args) throws Exception {
+ syncListExamplesStringString();
+ }
+
+ public static void syncListExamplesStringString() throws Exception {
+ // 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();
+ String filter = "filter-1274492040";
+ for (Example element : dataLabelingServiceClient.listExamples(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listexamples_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java
new file mode 100644
index 00000000..5cd31e66
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class AsyncListInstructions {
+
+ public static void main(String[] args) throws Exception {
+ asyncListInstructions();
+ }
+
+ public static void asyncListInstructions() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.listInstructionsPagedCallable().futureCall(request);
+ // Do something.
+ for (Instruction element : future.get().iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java
new file mode 100644
index 00000000..c3469f28
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_paged_async]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest;
+import com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+import com.google.common.base.Strings;
+
+public class AsyncListInstructionsPaged {
+
+ public static void main(String[] args) throws Exception {
+ asyncListInstructionsPaged();
+ }
+
+ public static void asyncListInstructionsPaged() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ while (true) {
+ ListInstructionsResponse response =
+ dataLabelingServiceClient.listInstructionsCallable().call(request);
+ for (Instruction element : response.getInstructionsList()) {
+ // doThingsWith(element);
+ }
+ String nextPageToken = response.getNextPageToken();
+ if (!Strings.isNullOrEmpty(nextPageToken)) {
+ request = request.toBuilder().setPageToken(nextPageToken).build();
+ } else {
+ break;
+ }
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_paged_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java
new file mode 100644
index 00000000..0bef90ea
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListInstructions {
+
+ public static void main(String[] args) throws Exception {
+ syncListInstructions();
+ }
+
+ public static void syncListInstructions() throws Exception {
+ // 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()
+ .setParent(ProjectName.of("[PROJECT]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .build();
+ for (Instruction element : dataLabelingServiceClient.listInstructions(request).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java
new file mode 100644
index 00000000..91045625
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_projectnamestring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListInstructionsProjectnameString {
+
+ public static void main(String[] args) throws Exception {
+ syncListInstructionsProjectnameString();
+ }
+
+ public static void syncListInstructionsProjectnameString() throws Exception {
+ // 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";
+ for (Instruction element :
+ dataLabelingServiceClient.listInstructions(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_projectnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java
new file mode 100644
index 00000000..e9dd7aca
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_stringstring_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.Instruction;
+import com.google.cloud.datalabeling.v1beta1.ProjectName;
+
+public class SyncListInstructionsStringString {
+
+ public static void main(String[] args) throws Exception {
+ syncListInstructionsStringString();
+ }
+
+ public static void syncListInstructionsStringString() throws Exception {
+ // 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";
+ for (Instruction element :
+ dataLabelingServiceClient.listInstructions(parent, filter).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_listinstructions_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java
new file mode 100644
index 00000000..dab06b7c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_pauseevaluationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest;
+import com.google.protobuf.Empty;
+
+public class AsyncPauseEvaluationJob {
+
+ public static void main(String[] args) throws Exception {
+ asyncPauseEvaluationJob();
+ }
+
+ public static void asyncPauseEvaluationJob() throws Exception {
+ // 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()
+ .setName(EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString())
+ .build();
+ ApiFuture future =
+ dataLabelingServiceClient.pauseEvaluationJobCallable().futureCall(request);
+ // Do something.
+ future.get();
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_pauseevaluationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java
new file mode 100644
index 00000000..50b185c3
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_pauseevaluationjob_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest;
+import com.google.protobuf.Empty;
+
+public class SyncPauseEvaluationJob {
+
+ public static void main(String[] args) throws Exception {
+ syncPauseEvaluationJob();
+ }
+
+ public static void syncPauseEvaluationJob() throws Exception {
+ // 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()
+ .setName(EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString())
+ .build();
+ dataLabelingServiceClient.pauseEvaluationJob(request);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_pauseevaluationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java
new file mode 100644
index 00000000..cc1b3db7
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_pauseevaluationjob_evaluationjobname_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.protobuf.Empty;
+
+public class SyncPauseEvaluationJobEvaluationjobname {
+
+ public static void main(String[] args) throws Exception {
+ syncPauseEvaluationJobEvaluationjobname();
+ }
+
+ public static void syncPauseEvaluationJobEvaluationjobname() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_pauseevaluationjob_evaluationjobname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java
new file mode 100644
index 00000000..21a66155
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_pauseevaluationjob_string_sync]
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.protobuf.Empty;
+
+public class SyncPauseEvaluationJobString {
+
+ public static void main(String[] args) throws Exception {
+ syncPauseEvaluationJobString();
+ }
+
+ public static void syncPauseEvaluationJobString() throws Exception {
+ // 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);
+ }
+ }
+}
+// [END datalabeling_v1beta1_generated_datalabelingserviceclient_pauseevaluationjob_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java
new file mode 100644
index 00000000..baf23745
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.datalabeling.v1beta1.samples;
+
+// [START datalabeling_v1beta1_generated_datalabelingserviceclient_resumeevaluationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
+import com.google.cloud.datalabeling.v1beta1.EvaluationJobName;
+import com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest;
+import com.google.protobuf.Empty;
+
+public class AsyncResumeEvaluationJob {
+
+ public static void main(String[] args) throws Exception {
+ asyncResumeEvaluationJob();
+ }
+
+ public static void asyncResumeEvaluationJob() throws Exception {
+ // 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()
+ .setName(EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString())
+ .build();
+ ApiFuture