From 9a161294f6327189765f4610bbdf87cc5376995f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 17 Mar 2020 16:10:32 -0700 Subject: [PATCH 001/135] samples: scaffold pom.xml files (#102) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-03-17 11:30:45,653 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. 2020-03-17 11:30:45,709 synthtool > Ensuring dependencies. 2020-03-17 11:30:45,714 synthtool > Pulling artman image. latest: Pulling from googleapis/artman Digest: sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b Status: Image is up to date for googleapis/artman:latest 2020-03-17 11:30:46,678 synthtool > Cloning googleapis. 2020-03-17 11:30:47,334 synthtool > Running generator for google/cloud/datalabeling/artman_datalabeling_v1beta1.yaml. 2020-03-17 11:31:00,139 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 11:31:00,142 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java. 2020-03-17 11:31:00,142 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java. 2020-03-17 11:31:00,143 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java. 2020-03-17 11:31:00,143 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java. 2020-03-17 11:31:00,143 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,144 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,144 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java. 2020-03-17 11:31:00,144 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java. 2020-03-17 11:31:00,144 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,144 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java. 2020-03-17 11:31:00,145 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java. 2020-03-17 11:31:00,145 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java. 2020-03-17 11:31:00,145 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java. 2020-03-17 11:31:00,145 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java. 2020-03-17 11:31:00,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java. 2020-03-17 11:31:00,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java. 2020-03-17 11:31:00,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java. 2020-03-17 11:31:00,146 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java. 2020-03-17 11:31:00,147 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java. 2020-03-17 11:31:00,147 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java. 2020-03-17 11:31:00,147 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java. 2020-03-17 11:31:00,147 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java. 2020-03-17 11:31:00,148 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java. 2020-03-17 11:31:00,148 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java. 2020-03-17 11:31:00,148 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java. 2020-03-17 11:31:00,148 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java. 2020-03-17 11:31:00,149 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java. 2020-03-17 11:31:00,149 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java. 2020-03-17 11:31:00,149 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java. 2020-03-17 11:31:00,149 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java. 2020-03-17 11:31:00,150 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java. 2020-03-17 11:31:00,150 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java. 2020-03-17 11:31:00,150 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java. 2020-03-17 11:31:00,150 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java. 2020-03-17 11:31:00,150 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java. 2020-03-17 11:31:00,151 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,151 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java. 2020-03-17 11:31:00,151 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java. 2020-03-17 11:31:00,151 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java. 2020-03-17 11:31:00,151 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java. 2020-03-17 11:31:00,152 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java. 2020-03-17 11:31:00,152 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java. 2020-03-17 11:31:00,152 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java. 2020-03-17 11:31:00,152 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java. 2020-03-17 11:31:00,153 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java. 2020-03-17 11:31:00,153 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java. 2020-03-17 11:31:00,153 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java. 2020-03-17 11:31:00,153 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java. 2020-03-17 11:31:00,153 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java. 2020-03-17 11:31:00,154 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java. 2020-03-17 11:31:00,154 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java. 2020-03-17 11:31:00,154 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java. 2020-03-17 11:31:00,154 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java. 2020-03-17 11:31:00,155 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java. 2020-03-17 11:31:00,155 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java. 2020-03-17 11:31:00,155 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java. 2020-03-17 11:31:00,155 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java. 2020-03-17 11:31:00,156 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java. 2020-03-17 11:31:00,156 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java. 2020-03-17 11:31:00,156 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java. 2020-03-17 11:31:00,156 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java. 2020-03-17 11:31:00,157 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java. 2020-03-17 11:31:00,157 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java. 2020-03-17 11:31:00,157 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java. 2020-03-17 11:31:00,157 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java. 2020-03-17 11:31:00,157 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java. 2020-03-17 11:31:00,158 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java. 2020-03-17 11:31:00,158 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java. 2020-03-17 11:31:00,158 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java. 2020-03-17 11:31:00,158 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java. 2020-03-17 11:31:00,159 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java. 2020-03-17 11:31:00,159 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java. 2020-03-17 11:31:00,159 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java. 2020-03-17 11:31:00,159 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java. 2020-03-17 11:31:00,160 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java. 2020-03-17 11:31:00,160 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java. 2020-03-17 11:31:00,160 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java. 2020-03-17 11:31:00,160 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java. 2020-03-17 11:31:00,161 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java. 2020-03-17 11:31:00,161 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java. 2020-03-17 11:31:00,161 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java. 2020-03-17 11:31:00,161 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java. 2020-03-17 11:31:00,162 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java. 2020-03-17 11:31:00,162 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java. 2020-03-17 11:31:00,162 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java. 2020-03-17 11:31:00,162 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java. 2020-03-17 11:31:00,163 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java. 2020-03-17 11:31:00,163 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java. 2020-03-17 11:31:00,163 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java. 2020-03-17 11:31:00,164 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java. 2020-03-17 11:31:00,164 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java. 2020-03-17 11:31:00,164 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java. 2020-03-17 11:31:00,164 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java. 2020-03-17 11:31:00,164 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java. 2020-03-17 11:31:00,165 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java. 2020-03-17 11:31:00,165 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java. 2020-03-17 11:31:00,165 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,165 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java. 2020-03-17 11:31:00,165 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,166 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java. 2020-03-17 11:31:00,166 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,166 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java. 2020-03-17 11:31:00,166 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java. 2020-03-17 11:31:00,166 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java. 2020-03-17 11:31:00,167 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java. 2020-03-17 11:31:00,167 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java. 2020-03-17 11:31:00,167 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java. 2020-03-17 11:31:00,167 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java. 2020-03-17 11:31:00,167 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java. 2020-03-17 11:31:00,168 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java. 2020-03-17 11:31:00,168 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java. 2020-03-17 11:31:00,168 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java. 2020-03-17 11:31:00,168 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java. 2020-03-17 11:31:00,169 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java. 2020-03-17 11:31:00,169 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java. 2020-03-17 11:31:00,169 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java. 2020-03-17 11:31:00,169 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java. 2020-03-17 11:31:00,170 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,170 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,170 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java. 2020-03-17 11:31:00,170 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java. 2020-03-17 11:31:00,170 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java. 2020-03-17 11:31:00,171 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,171 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java. 2020-03-17 11:31:00,171 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java. 2020-03-17 11:31:00,171 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java. 2020-03-17 11:31:00,171 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java. 2020-03-17 11:31:00,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java. 2020-03-17 11:31:00,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java. 2020-03-17 11:31:00,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java. 2020-03-17 11:31:00,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java. 2020-03-17 11:31:00,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java. 2020-03-17 11:31:00,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java. 2020-03-17 11:31:00,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java. 2020-03-17 11:31:00,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java. 2020-03-17 11:31:00,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java. 2020-03-17 11:31:00,174 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java. 2020-03-17 11:31:00,174 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java. 2020-03-17 11:31:00,174 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java. 2020-03-17 11:31:00,174 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java. 2020-03-17 11:31:00,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java. 2020-03-17 11:31:00,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java. 2020-03-17 11:31:00,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java. 2020-03-17 11:31:00,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java. 2020-03-17 11:31:00,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java. 2020-03-17 11:31:00,176 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java. 2020-03-17 11:31:00,176 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java. 2020-03-17 11:31:00,176 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java. 2020-03-17 11:31:00,176 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java. 2020-03-17 11:31:00,176 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java. 2020-03-17 11:31:00,177 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java. 2020-03-17 11:31:00,177 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java. 2020-03-17 11:31:00,177 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,177 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java. 2020-03-17 11:31:00,177 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java. 2020-03-17 11:31:00,178 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java. 2020-03-17 11:31:00,178 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java. 2020-03-17 11:31:00,178 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java. 2020-03-17 11:31:00,178 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java. 2020-03-17 11:31:00,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java. 2020-03-17 11:31:00,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java. 2020-03-17 11:31:00,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java. 2020-03-17 11:31:00,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java. 2020-03-17 11:31:00,180 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java. 2020-03-17 11:31:00,180 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java. 2020-03-17 11:31:00,180 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java. 2020-03-17 11:31:00,180 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java. 2020-03-17 11:31:00,181 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java. 2020-03-17 11:31:00,181 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java. 2020-03-17 11:31:00,181 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java. 2020-03-17 11:31:00,181 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java. 2020-03-17 11:31:00,182 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java. 2020-03-17 11:31:00,182 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java. 2020-03-17 11:31:00,182 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java. 2020-03-17 11:31:00,182 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java. 2020-03-17 11:31:00,182 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java. 2020-03-17 11:31:00,183 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java. 2020-03-17 11:31:00,183 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java. 2020-03-17 11:31:00,183 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java. 2020-03-17 11:31:00,183 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java. 2020-03-17 11:31:00,184 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java. 2020-03-17 11:31:00,184 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java. 2020-03-17 11:31:00,184 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java. 2020-03-17 11:31:00,184 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java. 2020-03-17 11:31:00,184 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java. 2020-03-17 11:31:00,185 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java. 2020-03-17 11:31:00,185 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java. 2020-03-17 11:31:00,185 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java. 2020-03-17 11:31:00,185 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java. 2020-03-17 11:31:00,185 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java. 2020-03-17 11:31:00,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java. 2020-03-17 11:31:00,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java. 2020-03-17 11:31:00,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java. 2020-03-17 11:31:00,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java. 2020-03-17 11:31:00,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java. 2020-03-17 11:31:00,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java. 2020-03-17 11:31:00,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java. 2020-03-17 11:31:00,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java. 2020-03-17 11:31:00,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java. 2020-03-17 11:31:00,188 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java. 2020-03-17 11:31:00,188 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java. 2020-03-17 11:31:00,188 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java. 2020-03-17 11:31:00,188 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java. 2020-03-17 11:31:00,189 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java. 2020-03-17 11:31:00,189 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java. 2020-03-17 11:31:00,189 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java. 2020-03-17 11:31:00,189 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java. 2020-03-17 11:31:00,189 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java. 2020-03-17 11:31:00,190 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java. 2020-03-17 11:31:00,190 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java. 2020-03-17 11:31:00,190 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java. 2020-03-17 11:31:00,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java. 2020-03-17 11:31:00,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java. 2020-03-17 11:31:00,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java. 2020-03-17 11:31:00,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java. 2020-03-17 11:31:00,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java. 2020-03-17 11:31:00,192 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java. 2020-03-17 11:31:00,192 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java. 2020-03-17 11:31:00,192 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java. 2020-03-17 11:31:00,192 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java. 2020-03-17 11:31:00,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java. 2020-03-17 11:31:00,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java. 2020-03-17 11:31:00,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java. 2020-03-17 11:31:00,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java. 2020-03-17 11:31:00,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java. 2020-03-17 11:31:00,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java. 2020-03-17 11:31:00,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java. 2020-03-17 11:31:00,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java. 2020-03-17 11:31:00,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java. 2020-03-17 11:31:00,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java. 2020-03-17 11:31:00,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java. 2020-03-17 11:31:00,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java. 2020-03-17 11:31:00,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java. 2020-03-17 11:31:00,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java. 2020-03-17 11:31:00,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java. 2020-03-17 11:31:00,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java. 2020-03-17 11:31:00,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java. 2020-03-17 11:31:00,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java. 2020-03-17 11:31:00,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java. 2020-03-17 11:31:00,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java. 2020-03-17 11:31:00,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java. 2020-03-17 11:31:00,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java. 2020-03-17 11:31:00,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java. 2020-03-17 11:31:00,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java. 2020-03-17 11:31:00,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java. 2020-03-17 11:31:00,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java. 2020-03-17 11:31:00,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java. 2020-03-17 11:31:00,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java. 2020-03-17 11:31:00,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java. 2020-03-17 11:31:00,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java. 2020-03-17 11:31:00,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java. 2020-03-17 11:31:00,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java. 2020-03-17 11:31:00,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java. 2020-03-17 11:31:00,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java. 2020-03-17 11:31:00,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java. 2020-03-17 11:31:00,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java. 2020-03-17 11:31:00,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java. 2020-03-17 11:31:00,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java. 2020-03-17 11:31:00,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java. 2020-03-17 11:31:00,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java. 2020-03-17 11:31:00,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java. 2020-03-17 11:31:00,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java. 2020-03-17 11:31:00,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java. 2020-03-17 11:31:00,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java. 2020-03-17 11:31:00,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java. 2020-03-17 11:31:00,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java. 2020-03-17 11:31:00,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java. 2020-03-17 11:31:00,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java. 2020-03-17 11:31:00,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java. 2020-03-17 11:31:00,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java. 2020-03-17 11:31:00,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java. 2020-03-17 11:31:00,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java. 2020-03-17 11:31:00,208 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java. 2020-03-17 11:31:00,208 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java. 2020-03-17 11:31:00,208 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java. 2020-03-17 11:31:00,209 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java. 2020-03-17 11:31:00,209 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java. 2020-03-17 11:31:00,209 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java. 2020-03-17 11:31:00,209 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java. 2020-03-17 11:31:00,210 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java. 2020-03-17 11:31:00,210 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java. 2020-03-17 11:31:00,215 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java. 2020-03-17 11:31:00,289 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-datalabeling-v1beta1/samples/src')] were copied. Does the source contain files? 2020-03-17 11:31:00,290 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-datalabeling-v1beta1/samples/resources')] were copied. Does the source contain files? 2020-03-17 11:31:00,290 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-datalabeling-v1beta1/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 11:31:00,291 synthtool > Running java formatter on 11 files 2020-03-17 11:31:04,317 synthtool > Running java formatter on 1 files 2020-03-17 11:31:07,533 synthtool > Running java formatter on 284 files 2020-03-17 11:31:23,606 synthtool > Running java formatter on 0 files .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/release-please.yml .github/trusted-contribution.yml .kokoro/build.bat .kokoro/build.sh .kokoro/coerce_logs.sh .kokoro/common.cfg .kokoro/continuous/common.cfg .kokoro/continuous/dependencies.cfg .kokoro/continuous/integration.cfg .kokoro/continuous/java11.cfg .kokoro/continuous/java7.cfg .kokoro/continuous/java8-osx.cfg .kokoro/continuous/java8-win.cfg .kokoro/continuous/java8.cfg .kokoro/continuous/lint.cfg .kokoro/continuous/propose_release.cfg .kokoro/continuous/samples.cfg .kokoro/dependencies.sh .kokoro/linkage-monitor.sh .kokoro/nightly/common.cfg .kokoro/nightly/dependencies.cfg .kokoro/nightly/integration.cfg .kokoro/nightly/java11.cfg .kokoro/nightly/java7.cfg .kokoro/nightly/java8-osx.cfg .kokoro/nightly/java8-win.cfg .kokoro/nightly/java8.cfg .kokoro/nightly/lint.cfg .kokoro/nightly/samples.cfg .kokoro/presubmit/clirr.cfg .kokoro/presubmit/common.cfg .kokoro/presubmit/dependencies.cfg .kokoro/presubmit/integration.cfg .kokoro/presubmit/java11.cfg .kokoro/presubmit/java7.cfg .kokoro/presubmit/java8-osx.cfg .kokoro/presubmit/java8-win.cfg .kokoro/presubmit/java8.cfg .kokoro/presubmit/linkage-monitor.cfg .kokoro/presubmit/lint.cfg .kokoro/presubmit/samples.cfg .kokoro/release/bump_snapshot.cfg .kokoro/release/common.cfg .kokoro/release/common.sh .kokoro/release/drop.cfg .kokoro/release/drop.sh .kokoro/release/promote.cfg .kokoro/release/promote.sh .kokoro/release/publish_javadoc.cfg .kokoro/release/publish_javadoc.sh .kokoro/release/snapshot.cfg .kokoro/release/snapshot.sh .kokoro/release/stage.cfg .kokoro/release/stage.sh .kokoro/trampoline.sh CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md codecov.yaml java.header license-checks.xml renovate.json samples/install-without-bom/pom.xml samples/pom.xml samples/snapshot/pom.xml samples/snippets/pom.xml 2020-03-17 11:31:24,113 synthtool > merge: CODE_OF_CONDUCT.md 2020-03-17 11:31:24,114 synthtool > merge: java.header 2020-03-17 11:31:24,114 synthtool > merge: license-checks.xml 2020-03-17 11:31:24,114 synthtool > merge: LICENSE 2020-03-17 11:31:24,114 synthtool > merge: README.md 2020-03-17 11:31:24,115 synthtool > merge: CONTRIBUTING.md 2020-03-17 11:31:24,115 synthtool > merge: renovate.json 2020-03-17 11:31:24,115 synthtool > merge: codecov.yaml 2020-03-17 11:31:24,116 synthtool > merge: .kokoro/build.sh 2020-03-17 11:31:24,116 synthtool > merge: .kokoro/coerce_logs.sh 2020-03-17 11:31:24,117 synthtool > merge: .kokoro/dependencies.sh 2020-03-17 11:31:24,117 synthtool > merge: .kokoro/linkage-monitor.sh 2020-03-17 11:31:24,117 synthtool > merge: .kokoro/trampoline.sh 2020-03-17 11:31:24,117 synthtool > merge: .kokoro/common.cfg 2020-03-17 11:31:24,118 synthtool > merge: .kokoro/build.bat 2020-03-17 11:31:24,118 synthtool > merge: .kokoro/release/promote.sh 2020-03-17 11:31:24,118 synthtool > merge: .kokoro/release/snapshot.sh 2020-03-17 11:31:24,118 synthtool > merge: .kokoro/release/stage.sh 2020-03-17 11:31:24,119 synthtool > merge: .kokoro/release/bump_snapshot.cfg 2020-03-17 11:31:24,119 synthtool > merge: .kokoro/release/drop.cfg 2020-03-17 11:31:24,119 synthtool > merge: .kokoro/release/snapshot.cfg 2020-03-17 11:31:24,119 synthtool > merge: .kokoro/release/promote.cfg 2020-03-17 11:31:24,120 synthtool > merge: .kokoro/release/publish_javadoc.sh 2020-03-17 11:31:24,120 synthtool > merge: .kokoro/release/common.cfg 2020-03-17 11:31:24,120 synthtool > merge: .kokoro/release/drop.sh 2020-03-17 11:31:24,120 synthtool > merge: .kokoro/release/publish_javadoc.cfg 2020-03-17 11:31:24,121 synthtool > merge: .kokoro/release/stage.cfg 2020-03-17 11:31:24,121 synthtool > merge: .kokoro/release/common.sh 2020-03-17 11:31:24,121 synthtool > merge: .kokoro/nightly/lint.cfg 2020-03-17 11:31:24,121 synthtool > merge: .kokoro/nightly/java11.cfg 2020-03-17 11:31:24,122 synthtool > merge: .kokoro/nightly/samples.cfg 2020-03-17 11:31:24,122 synthtool > merge: .kokoro/nightly/java8.cfg 2020-03-17 11:31:24,122 synthtool > merge: .kokoro/nightly/java7.cfg 2020-03-17 11:31:24,122 synthtool > merge: .kokoro/nightly/common.cfg 2020-03-17 11:31:24,123 synthtool > merge: .kokoro/nightly/dependencies.cfg 2020-03-17 11:31:24,123 synthtool > merge: .kokoro/nightly/java8-osx.cfg 2020-03-17 11:31:24,123 synthtool > merge: .kokoro/nightly/java8-win.cfg 2020-03-17 11:31:24,123 synthtool > merge: .kokoro/nightly/integration.cfg 2020-03-17 11:31:24,124 synthtool > merge: .kokoro/presubmit/lint.cfg 2020-03-17 11:31:24,124 synthtool > merge: .kokoro/presubmit/clirr.cfg 2020-03-17 11:31:24,124 synthtool > merge: .kokoro/presubmit/java11.cfg 2020-03-17 11:31:24,125 synthtool > merge: .kokoro/presubmit/samples.cfg 2020-03-17 11:31:24,125 synthtool > merge: .kokoro/presubmit/linkage-monitor.cfg 2020-03-17 11:31:24,125 synthtool > merge: .kokoro/presubmit/java8.cfg 2020-03-17 11:31:24,125 synthtool > merge: .kokoro/presubmit/java7.cfg 2020-03-17 11:31:24,126 synthtool > merge: .kokoro/presubmit/common.cfg 2020-03-17 11:31:24,126 synthtool > merge: .kokoro/presubmit/dependencies.cfg 2020-03-17 11:31:24,126 synthtool > merge: .kokoro/presubmit/java8-osx.cfg 2020-03-17 11:31:24,126 synthtool > merge: .kokoro/presubmit/java8-win.cfg 2020-03-17 11:31:24,127 synthtool > merge: .kokoro/presubmit/integration.cfg 2020-03-17 11:31:24,127 synthtool > merge: .kokoro/continuous/lint.cfg 2020-03-17 11:31:24,127 synthtool > merge: .kokoro/continuous/java11.cfg 2020-03-17 11:31:24,128 synthtool > merge: .kokoro/continuous/samples.cfg 2020-03-17 11:31:24,128 synthtool > merge: .kokoro/continuous/java8.cfg 2020-03-17 11:31:24,128 synthtool > merge: .kokoro/continuous/java7.cfg 2020-03-17 11:31:24,128 synthtool > merge: .kokoro/continuous/propose_release.cfg 2020-03-17 11:31:24,129 synthtool > merge: .kokoro/continuous/common.cfg 2020-03-17 11:31:24,129 synthtool > merge: .kokoro/continuous/dependencies.cfg 2020-03-17 11:31:24,129 synthtool > merge: .kokoro/continuous/java8-osx.cfg 2020-03-17 11:31:24,129 synthtool > merge: .kokoro/continuous/java8-win.cfg 2020-03-17 11:31:24,130 synthtool > merge: .kokoro/continuous/integration.cfg 2020-03-17 11:31:24,130 synthtool > merge: .github/trusted-contribution.yml 2020-03-17 11:31:24,130 synthtool > merge: .github/release-please.yml 2020-03-17 11:31:24,130 synthtool > merge: .github/PULL_REQUEST_TEMPLATE.md 2020-03-17 11:31:24,131 synthtool > merge: .github/ISSUE_TEMPLATE/feature_request.md 2020-03-17 11:31:24,131 synthtool > merge: .github/ISSUE_TEMPLATE/bug_report.md 2020-03-17 11:31:24,131 synthtool > merge: .github/ISSUE_TEMPLATE/support_request.md 2020-03-17 11:31:24,137 synthtool > Wrote metadata to synth.metadata. ```
--- datalabeling/install-without-bom/pom.xml | 84 ++++++++++++++++++++++++ datalabeling/pom.xml | 56 ++++++++++++++++ datalabeling/snapshot/pom.xml | 83 +++++++++++++++++++++++ datalabeling/snippets/pom.xml | 60 +++++++++++++++++ 4 files changed, 283 insertions(+) create mode 100644 datalabeling/install-without-bom/pom.xml create mode 100644 datalabeling/pom.xml create mode 100644 datalabeling/snapshot/pom.xml create mode 100644 datalabeling/snippets/pom.xml diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml new file mode 100644 index 00000000000..70b5aad5fb7 --- /dev/null +++ b/datalabeling/install-without-bom/pom.xml @@ -0,0 +1,84 @@ + + + 4.0.0 + com.google.cloud + datalabeling-install-without-bom + jar + Google Data Labeling Install Without Bom + https://github.com/googleapis/java-datalabeling + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + com.google.cloud + google-cloud-datalabeling + 0.118.0 + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml new file mode 100644 index 00000000000..283aadbd222 --- /dev/null +++ b/datalabeling/pom.xml @@ -0,0 +1,56 @@ + + + 4.0.0 + com.google.cloud + google-cloud-datalabeling-samples + 0.0.1-SNAPSHOT + pom + Google Data Labeling Samples Parent + https://github.com/googleapis/java-datalabeling + + Java idiomatic client for Google Cloud Platform services. + + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + install-without-bom + snapshot + snippets + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + + true + + + + + diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml new file mode 100644 index 00000000000..cd22ffac62e --- /dev/null +++ b/datalabeling/snapshot/pom.xml @@ -0,0 +1,83 @@ + + + 4.0.0 + com.google.cloud + datalabeling-snapshot + jar + Google Data Labeling Snapshot Samples + https://github.com/googleapis/java-datalabeling + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + com.google.cloud + google-cloud-datalabeling + 0.118.0 + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + \ No newline at end of file diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml new file mode 100644 index 00000000000..59aff155619 --- /dev/null +++ b/datalabeling/snippets/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + com.google.cloud + datalabeling-snippets + jar + Google Data Labeling Snippets + https://github.com/googleapis/java-datalabeling + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + + com.google.cloud + libraries-bom + 4.2.0 + pom + import + + + + + + + com.google.cloud + google-cloud-datalabeling + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + From 8b8b2fedbb225beb78b12a7ac96353d5a5fbb00b Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 18 Mar 2020 08:48:26 -0700 Subject: [PATCH 002/135] samples: fix snippet closing tag (#104) --- datalabeling/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 70b5aad5fb7..e3bfb869906 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -31,7 +31,7 @@ google-cloud-datalabeling 0.118.0 - + junit From 5d74bf460cfbdc765cb7f3d879fa8cb8756c43ca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 23 Mar 2020 18:22:33 +0100 Subject: [PATCH 003/135] chore(deps): update dependency com.google.cloud:libraries-bom to v4.3.0 (#110) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 59aff155619..92c1f819873 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.2.0 + 4.3.0 pom import From c2d0bc977c31f868a51b36939d87ed30a07ba423 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 25 Mar 2020 19:56:15 +0100 Subject: [PATCH 004/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.13 (#114) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.12` -> `1.0.13` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.13`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.13) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.12...v1.0.13) Fix some issues w/ Checkstyle configuration. We left the option to turn it off out.
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index e3bfb869906..dc67b523343 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.13 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 283aadbd222..4ea17105d83 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.13 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index cd22ffac62e..d69d66d7429 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.13 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 92c1f819873..94dd1e5cdad 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.13 From 8457cc905c23b7474bff1fbb532e2123786f712f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 30 Mar 2020 19:56:31 +0200 Subject: [PATCH 005/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.14 (#119) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.13` -> `1.0.14` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.14`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.14) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.13...v1.0.14) - Update CheckStyle to 8.31 - Add SpotBugs
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index dc67b523343..7a83f4e41b5 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.13 + 1.0.14 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 4ea17105d83..c0c65abaa73 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.13 + 1.0.14 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index d69d66d7429..ad2aae84639 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.13 + 1.0.14 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 94dd1e5cdad..878ddba705e 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.13 + 1.0.14 From 2d098ade938c74e780d463793701a38c117ab477 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Apr 2020 21:38:10 +0200 Subject: [PATCH 006/135] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.0 (#120) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.3.0` -> `4.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 878ddba705e..9dd83d058f9 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.3.0 + 4.4.0 pom import From 0ac2b3188a68a48e72a798e0cbd4857591d7d60b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 17:48:31 +0200 Subject: [PATCH 007/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#122) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.14` -> `1.0.15` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.15`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.15) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.14...v1.0.15) - Move some stuff around (in prep for a change to release process) pom.xml's - Add an exclude filter for SpotBugs. (disable the Java 11 surprise) - Don't fail on SpotBugs issues for now - add PMD reporting - Don't fail on PMD issues for now.
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 7a83f4e41b5..860cf4c1ea2 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.14 + 1.0.15 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index c0c65abaa73..58000c77ce7 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.14 + 1.0.15 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index ad2aae84639..5495bb5e674 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.14 + 1.0.15 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 9dd83d058f9..84e3eff4e3c 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.14 + 1.0.15 From 0200c621acff842b8bb17544e36cf17469f9c057 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 19:58:29 +0200 Subject: [PATCH 008/135] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.1 (#123) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `4.4.0` -> `4.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 84e3eff4e3c..caef84d2c89 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.0 + 4.4.1 pom import From e78a1f31071ab43faf33734d3f9c65c18f03549c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Apr 2020 23:28:38 +0200 Subject: [PATCH 009/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.118.1 (#127) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | patch | `0.118.0` -> `0.118.1` | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.118.1`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01181-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01180v01181-2020-04-07) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.118.0...v0.118.1)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 860cf4c1ea2..eb8afbd3cf7 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.118.0 + 0.118.1 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 5495bb5e674..cc984791ed4 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.118.0 + 0.118.1 From 55a458ba1e989b597769f94824773edb8fa7aeb3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Apr 2020 19:54:23 +0200 Subject: [PATCH 010/135] chore(deps): update dependency com.google.cloud:libraries-bom to v5 (#137) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `4.4.1` -> `5.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index caef84d2c89..d189fb2ca71 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.1 + 5.1.0 pom import From d8fc9ea0238cdb81b7cb98089e08650c4adebd03 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Apr 2020 17:50:32 +0200 Subject: [PATCH 011/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.16 (#145) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.15` -> `1.0.16` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.16`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.16) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.15...v1.0.16) Add a few SpotBugs exclusions: - `RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE` - existing - codegen bug - `UPM_UNCALLED_PRIVATE_METHOD` - probably SpotBug issue - `NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE` - likely SpotBug issue - `CLI_CONSTANT_LIST_INDEX` - style issue particular to our samples - `OBL_UNSATISFIED_OBLIGATION` - issue for SQL clients
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index eb8afbd3cf7..168b11b105c 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.15 + 1.0.16 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 58000c77ce7..d19861bdf12 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.15 + 1.0.16 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index cc984791ed4..9a2339de176 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.15 + 1.0.16 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index d189fb2ca71..6da64cbdd63 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.15 + 1.0.16 From 734e55cd30bb8a80c3b0347e6ed9d1ab67fd1461 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Apr 2020 09:20:05 +0200 Subject: [PATCH 012/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.17 (#148) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.16` -> `1.0.17` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.17`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.17) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.16...v1.0.17) - require -P lint Lets not burden customers with our development rules. - Move Checkstyle, ErrorProne, PMD, and SpotBugs to only run w/ -P lint - Update the Readme - spotbugs-annotations 4.0.2
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 168b11b105c..eea4c5ea432 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.16 + 1.0.17 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index d19861bdf12..93de4c6ccbf 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.16 + 1.0.17 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 9a2339de176..c0d034025dd 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.16 + 1.0.17 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 6da64cbdd63..ebe46cc4bbd 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.16 + 1.0.17 From 84a9dfb3880343e53ea941de76018a48b07826b2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 21 Apr 2020 05:26:22 +0200 Subject: [PATCH 013/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.118.2 (#150) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | patch | `0.118.1` -> `0.118.2` | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.118.2`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01182-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01181v01182-2020-04-20) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.118.1...v0.118.2)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index eea4c5ea432..aec252eaeaa 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.118.1 + 0.118.2 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index c0d034025dd..a159769699a 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.118.1 + 0.118.2 From 82c601def9dc87d199343aff43f5837f05cc619e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Apr 2020 22:32:23 +0200 Subject: [PATCH 014/135] chore(deps): update dependency com.google.cloud:libraries-bom to v5.2.0 (#157) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.1.0` -> `5.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index ebe46cc4bbd..dba79467e31 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.1.0 + 5.2.0 pom import From d7f788bb929e2ea43c614ca911578243a40b603d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 29 Apr 2020 01:06:48 +0200 Subject: [PATCH 015/135] chore(deps): update dependency com.google.cloud:libraries-bom to v5.3.0 (#161) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.2.0` -> `5.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index dba79467e31..3ce030d8836 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.2.0 + 5.3.0 pom import From c3b1748a6afeaf2376e6f0407904506b73637980 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Jun 2020 15:24:07 +0200 Subject: [PATCH 016/135] chore(deps): update dependency com.google.cloud:libraries-bom to v5.6.0 (#169) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.3.0` -> `5.6.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 3ce030d8836..d58286958b2 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.3.0 + 5.6.0 pom import From 5a6b969cf5cd9e3fa01e4501ffbc475851c46620 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:44:37 +0200 Subject: [PATCH 017/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.18 (#187) This PR contains the following updates: | Package | Update | Change | |---|---|---| | com.google.cloud.samples:shared-configuration | patch | `1.0.17` -> `1.0.18` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index aec252eaeaa..cce95fe3ce3 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 93de4c6ccbf..893ea1faa13 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index a159769699a..4ef7d58b955 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index d58286958b2..95c40c90d9a 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 From 3b01226ccc82939508bd13103acaf44353c149ea Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:50:49 +0200 Subject: [PATCH 018/135] chore(deps): update dependency com.google.cloud:libraries-bom to v5.7.0 (#189) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.6.0` -> `5.7.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 95c40c90d9a..b9041ea8be9 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.6.0 + 5.7.0 pom import From 9662a481df757540cd6d860fc48fc61e08945a05 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 01:30:24 +0200 Subject: [PATCH 019/135] chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#195) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `5.7.0` -> `6.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index b9041ea8be9..44e5691e493 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.7.0 + 6.0.0 pom import From 6fad4a207a980197a80a9a78eaec72ff95a1248d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 19:40:22 +0200 Subject: [PATCH 020/135] chore(deps): update dependency com.google.cloud:libraries-bom to v7 (#200) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `6.0.0` -> `7.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 44e5691e493..fde1aa52a76 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 6.0.0 + 7.0.0 pom import From 1c8cd942b490a2add64f65032c6aa8271c13ddbf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 22 Jun 2020 22:51:17 +0200 Subject: [PATCH 021/135] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.2.0 (#203) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [org.codehaus.mojo:build-helper-maven-plugin](http://www.mojohaus.org/build-helper-maven-plugin/) ([source](https://togithub.com/mojohaus/build-helper-maven-plugin)) | minor | `3.1.0` -> `3.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index cce95fe3ce3..d6f5dcadddd 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -53,7 +53,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.1.0 + 3.2.0 add-snippets-source diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 4ef7d58b955..3baddff27a1 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -52,7 +52,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.1.0 + 3.2.0 add-snippets-source From 839d4cfc5634eb939c46b7cbb5158d93a636a4ee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Jun 2020 00:43:07 +0200 Subject: [PATCH 022/135] chore(deps): update dependency com.google.cloud:libraries-bom to v7.0.1 (#204) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `7.0.0` -> `7.0.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index fde1aa52a76..089e0d201c6 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.0 + 7.0.1 pom import From 2b94a8678c8025670ac4c09a7d8f7b008bf990a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Jun 2020 07:22:56 +0200 Subject: [PATCH 023/135] chore(deps): update dependency com.google.cloud:libraries-bom to v8 (#208) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `7.0.1` -> `8.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 089e0d201c6..563bc4cb52d 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.1 + 8.0.0 pom import From 7ceda0a42bc135a10e8bc754eddaff70c18e1150 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Jul 2020 19:46:28 +0200 Subject: [PATCH 024/135] chore(deps): update dependency com.google.cloud:libraries-bom to v8.1.0 (#215) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `8.0.0` -> `8.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 563bc4cb52d..cf26a6ae31f 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.0.0 + 8.1.0 pom import From 3d1b26effc463a4e41a716a0e777acf3c71e5b4f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Jul 2020 20:16:38 +0200 Subject: [PATCH 025/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.0 (#218) --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index d6f5dcadddd..57ab8297276 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.118.2 + 0.119.0 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 3baddff27a1..c4f4874b6c5 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.118.2 + 0.119.0 From 06cb2b1187532635a7d4027a38f6887d5e38bcdc Mon Sep 17 00:00:00 2001 From: Nirupa Anantha Kumar Date: Thu, 4 Apr 2019 16:40:55 -0700 Subject: [PATCH 026/135] samples: Datalabeling beta samples (#1365) * Datalabeling beta samples * Fixing tests * Fixing tests * Ignoring tests for now due to time duration. * Ignoring tests for now due to time duration. * Ignoring tests for now due to time duration. * debugging * debugging --- .../datalabeling/CreateAnnotationSpecSet.java | 82 ++++++++++ .../example/datalabeling/CreateDataset.java | 56 +++++++ .../datalabeling/CreateInstruction.java | 73 +++++++++ .../com/example/datalabeling/ExportData.java | 78 +++++++++ .../com/example/datalabeling/ImportData.java | 66 ++++++++ .../com/example/datalabeling/LabelImage.java | 85 ++++++++++ .../com/example/datalabeling/LabelText.java | 88 ++++++++++ .../com/example/datalabeling/LabelVideo.java | 83 ++++++++++ .../CreateAnnotationSpecSetIT.java | 89 ++++++++++ .../example/datalabeling/CreateDatasetIT.java | 89 ++++++++++ .../datalabeling/CreateInstructionIT.java | 92 +++++++++++ .../example/datalabeling/ImportDataIT.java | 112 +++++++++++++ .../example/datalabeling/LabelImageIT.java | 134 +++++++++++++++ .../com/example/datalabeling/LabelTextIT.java | 152 +++++++++++++++++ .../example/datalabeling/LabelVideoIT.java | 154 ++++++++++++++++++ 15 files changed, 1433 insertions(+) create mode 100644 datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java create mode 100644 datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java create mode 100644 datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java create mode 100644 datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java create mode 100644 datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java create mode 100644 datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java create mode 100644 datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java create mode 100644 datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java create mode 100644 datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java create mode 100644 datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java create mode 100644 datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java create mode 100644 datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java create mode 100644 datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java create mode 100644 datalabeling/snippets/src/test/java/com/example/datalabeling/LabelTextIT.java create mode 100644 datalabeling/snippets/src/test/java/com/example/datalabeling/LabelVideoIT.java diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java new file mode 100644 index 00000000000..28626466ef8 --- /dev/null +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java @@ -0,0 +1,82 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +// [START datalabeling_create_annotation_spec_set_beta] +import com.google.cloud.datalabeling.v1beta1.AnnotationSpec; +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; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; + +class CreateAnnotationSpecSet { + + // Create an annotation spec set. + static void createAnnotationSpecSet(String projectId) { + // String projectId = "YOUR_PROJECT_ID"; + + Map annotationLabels = new HashMap<>(); + annotationLabels.put("label_1", "label_1_description"); + annotationLabels.put("label_2", "label_2_description"); + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + + ProjectName projectName = ProjectName.of(projectId); + + List annotationSpecs = new ArrayList<>(); + for (Entry entry : annotationLabels.entrySet()) { + AnnotationSpec annotationSpec = AnnotationSpec.newBuilder() + .setDisplayName(entry.getKey()) + .setDescription(entry.getValue()) + .build(); + annotationSpecs.add(annotationSpec); + } + + AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder() + .setDisplayName("YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME") + .setDescription("YOUR_DESCRIPTION") + .addAllAnnotationSpecs(annotationSpecs) + .build(); + + CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder() + .setAnnotationSpecSet(annotationSpecSet) + .setParent(projectName.toString()) + .build(); + + AnnotationSpecSet result = dataLabelingServiceClient.createAnnotationSpecSet(request); + + System.out.format("Name: %s\n", result.getName()); + System.out.format("DisplayName: %s\n", result.getDisplayName()); + System.out.format("Description: %s\n", result.getDescription()); + System.out.format("Annotation Count: %d\n", result.getAnnotationSpecsCount()); + + for (AnnotationSpec annotationSpec : result.getAnnotationSpecsList()) { + System.out.format("\tDisplayName: %s\n", annotationSpec.getDisplayName()); + System.out.format("\tDescription: %s\n\n", annotationSpec.getDescription()); + } + } catch (IOException e) { + e.printStackTrace(); + } + } +} +// [END datalabeling_create_annotation_spec_set_beta] diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java new file mode 100644 index 00000000000..b8eceb820e1 --- /dev/null +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java @@ -0,0 +1,56 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +// [START datalabeling_create_dataset_beta] +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; +import java.io.IOException; + +class CreateDataset { + + // Create a dataset that is initially empty. + static void createDataset(String projectId, String datasetName) { + // String projectId = "YOUR_PROJECT_ID"; + // String datasetName = "YOUR_DATASET_DISPLAY_NAME"; + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + ProjectName projectName = ProjectName.of(projectId); + + Dataset dataset = Dataset.newBuilder() + .setDisplayName(datasetName) + .setDescription("YOUR_DESCRIPTION") + .build(); + + CreateDatasetRequest createDatasetRequest = CreateDatasetRequest.newBuilder() + .setParent(projectName.toString()) + .setDataset(dataset) + .build(); + + Dataset createdDataset = dataLabelingServiceClient.createDataset(createDatasetRequest); + + System.out.format("Name: %s\n", createdDataset.getName()); + System.out.format("DisplayName: %s\n", createdDataset.getDisplayName()); + System.out.format("Description: %s\n", createdDataset.getDescription()); + } catch (IOException e) { + e.printStackTrace(); + } + } +} +// [END datalabeling_create_dataset_beta] diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java new file mode 100644 index 00000000000..ab56b3eeed0 --- /dev/null +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java @@ -0,0 +1,73 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +// [START datalabeling_create_instruction_beta] +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.DataType; +import com.google.cloud.datalabeling.v1beta1.Instruction; +import com.google.cloud.datalabeling.v1beta1.PdfInstruction; +import com.google.cloud.datalabeling.v1beta1.ProjectName; +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +class CreateInstruction { + + // Create a instruction for a dataset. + static void createInstruction(String projectId, String pdfUri) { + // String projectId = "YOUR_PROJECT_ID"; + // String pdfUri = "gs://YOUR_BUCKET_ID/path_to_pdf_or_csv"; + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + + ProjectName projectName = ProjectName.of(projectId); + + // There are two types of instructions: CSV (CsvInstruction) or PDF (PdfInstruction) + PdfInstruction pdfInstruction = PdfInstruction.newBuilder() + .setGcsFileUri(pdfUri) + .build(); + + Instruction instruction = Instruction.newBuilder() + .setDisplayName("YOUR_INSTRUCTION_DISPLAY_NAME") + .setDescription("YOUR_DESCRIPTION") + .setDataType(DataType.IMAGE) // DataTypes: AUDIO, IMAGE, VIDEO, TEXT + .setPdfInstruction(pdfInstruction) // .setCsvInstruction() or .setPdfInstruction() + .build(); + + CreateInstructionRequest createInstructionRequest = CreateInstructionRequest.newBuilder() + .setInstruction(instruction) + .setParent(projectName.toString()) + .build(); + + OperationFuture operation = + dataLabelingServiceClient.createInstructionAsync(createInstructionRequest); + + Instruction result = operation.get(); + + System.out.format("Name: %s\n", result.getName()); + System.out.format("DisplayName: %s\n", result.getDisplayName()); + System.out.format("Description: %s\n", result.getDescription()); + System.out.format("GCS SOURCE URI: %s\n", result.getPdfInstruction().getGcsFileUri()); + } catch (IOException | InterruptedException | ExecutionException e) { + e.printStackTrace(); + } + } +} +// [END datalabeling_create_instruction_beta] diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java new file mode 100644 index 00000000000..9b73085cc0e --- /dev/null +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java @@ -0,0 +1,78 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +// [START datalabeling_export_data_beta] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +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.GcsDestination; +import com.google.cloud.datalabeling.v1beta1.LabelStats; +import com.google.cloud.datalabeling.v1beta1.OutputConfig; +import java.io.IOException; +import java.util.Map.Entry; +import java.util.Set; +import java.util.concurrent.ExecutionException; + +class ExportData { + + // Export data from an annotated dataset. + static void exportData(String datasetName, String annotatedDatasetName, String gcsOutputUri) { + // String datasetName = DataLabelingServiceClient.formatDatasetName( + // "YOUR_PROJECT_ID", "YOUR_DATASETS_UUID"); + // String annotatedDatasetName = DataLabelingServiceClient.formatAnnotatedDatasetName( + // "YOUR_PROJECT_ID", + // "YOUR_DATASET_UUID", + // "YOUR_ANNOTATED_DATASET_UUID"); + // String gcsOutputUri = "gs://YOUR_BUCKET_ID/export_path"; + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + GcsDestination gcsDestination = GcsDestination.newBuilder() + .setOutputUri(gcsOutputUri) + .setMimeType("text/csv") + .build(); + + OutputConfig outputConfig = OutputConfig.newBuilder() + .setGcsDestination(gcsDestination) + .build(); + + ExportDataRequest exportDataRequest = ExportDataRequest.newBuilder() + .setName(datasetName) + .setOutputConfig(outputConfig) + .setAnnotatedDataset(annotatedDatasetName) + .build(); + + OperationFuture operation = + dataLabelingServiceClient.exportDataAsync(exportDataRequest); + + ExportDataOperationResponse response = operation.get(); + + System.out.format("Exported item count: %d\n", response.getExportCount()); + LabelStats labelStats = response.getLabelStats(); + Set> entries = labelStats.getExampleCountMap().entrySet(); + for (Entry entry : entries) { + System.out.format("\tLabel: %s\n", entry.getKey()); + System.out.format("\tCount: %d\n\n", entry.getValue()); + } + } catch (IOException | InterruptedException | ExecutionException e) { + e.printStackTrace(); + } + } +} +// [END datalabeling_export_data_beta] \ No newline at end of file diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java new file mode 100644 index 00000000000..f0e8c46dc13 --- /dev/null +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java @@ -0,0 +1,66 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +// [START datalabeling_import_data_beta] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataType; +import com.google.cloud.datalabeling.v1beta1.GcsSource; +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; +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +class ImportData { + + // Import data to an existing dataset. + static void importData(String datasetName, String gcsSourceUri) { + // String datasetName = DataLabelingServiceClient.formatDatasetName( + // "YOUR_PROJECT_ID", "YOUR_DATASETS_UUID"); + // String gcsSourceUri = "gs://YOUR_BUCKET_ID/path_to_data"; + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + GcsSource gcsSource = GcsSource.newBuilder() + .setInputUri(gcsSourceUri) + .setMimeType("text/csv") + .build(); + + InputConfig inputConfig = InputConfig.newBuilder() + .setDataType(DataType.IMAGE) // DataTypes: AUDIO, IMAGE, VIDEO, TEXT + .setGcsSource(gcsSource) + .build(); + + ImportDataRequest importDataRequest = ImportDataRequest.newBuilder() + .setName(datasetName) + .setInputConfig(inputConfig) + .build(); + + OperationFuture operation = + dataLabelingServiceClient.importDataAsync(importDataRequest); + + ImportDataOperationResponse response = operation.get(); + + System.out.format("Imported items: %d\n", response.getImportCount()); + } catch (IOException | InterruptedException | ExecutionException e) { + e.printStackTrace(); + } + } +} +// [END datalabeling_import_data_beta] diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java new file mode 100644 index 00000000000..35f2503d1d8 --- /dev/null +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java @@ -0,0 +1,85 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +// [START datalabeling_label_image_beta] +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.HumanAnnotationConfig; +import com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig; +import com.google.cloud.datalabeling.v1beta1.LabelImageRequest; +import com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature; +import com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata; +import com.google.cloud.datalabeling.v1beta1.StringAggregationType; +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +class LabelImage { + + // Start an Image Labeling Task + static void labelImage( + String formattedInstructionName, + String formattedAnnotationSpecSetName, + String formattedDatasetName) { + // String formattedInstructionName = DataLabelingServiceClient.formatInstructionName( + // "YOUR_PROJECT_ID", "YOUR_INSTRUCTION_UUID"); + // String formattedAnnotationSpecSetName = + // DataLabelingServiceClient.formatAnnotationSpecSetName( + // "YOUR_PROJECT_ID", "YOUR_ANNOTATION_SPEC_SET_UUID"); + // String formattedDatasetName = DataLabelingServiceClient.formatDatasetName( + // "YOUR_PROJECT_ID", "YOUR_DATASET_UUID"); + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + + HumanAnnotationConfig humanAnnotationConfig = + HumanAnnotationConfig.newBuilder() + .setAnnotatedDatasetDisplayName("annotated_displayname") + .setAnnotatedDatasetDescription("annotated_description") + .setInstruction(formattedInstructionName) + .build(); + + ImageClassificationConfig imageClassificationConfig = + ImageClassificationConfig.newBuilder() + .setAllowMultiLabel(true) + .setAnswerAggregationType(StringAggregationType.MAJORITY_VOTE) + .setAnnotationSpecSet(formattedAnnotationSpecSetName) + .build(); + + LabelImageRequest labelImageRequest = + LabelImageRequest.newBuilder() + .setParent(formattedDatasetName) + .setBasicConfig(humanAnnotationConfig) + .setImageClassificationConfig(imageClassificationConfig) + .setFeature(Feature.CLASSIFICATION) + .build(); + + OperationFuture operation = + dataLabelingServiceClient.labelImageAsync(labelImageRequest); + + // You'll want to save this for later to retrieve your completed operation. + System.out.format("Operation Name: %s\n", operation.getName()); + + // Cancel the operation to avoid charges when testing. + dataLabelingServiceClient.getOperationsClient().cancelOperation(operation.getName()); + + } catch (IOException | InterruptedException | ExecutionException e) { + e.printStackTrace(); + } + } +} +// [END datalabeling_label_image_beta] diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java new file mode 100644 index 00000000000..2ff411f0dd8 --- /dev/null +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java @@ -0,0 +1,88 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +// [START datalabeling_label_text_beta] +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.HumanAnnotationConfig; +import com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata; +import com.google.cloud.datalabeling.v1beta1.LabelTextRequest; +import com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature; +import com.google.cloud.datalabeling.v1beta1.SentimentConfig; +import com.google.cloud.datalabeling.v1beta1.TextClassificationConfig; +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +class LabelText { + + // Start a Text Labeling Task + static void labelText( + String formattedInstructionName, + String formattedAnnotationSpecSetName, + String formattedDatasetName) { + // String formattedInstructionName = DataLabelingServiceClient.formatInstructionName( + // "YOUR_PROJECT_ID", "YOUR_INSTRUCTION_UUID"); + // String formattedAnnotationSpecSetName = + // DataLabelingServiceClient.formatAnnotationSpecSetName( + // "YOUR_PROJECT_ID", "YOUR_ANNOTATION_SPEC_SET_UUID"); + // String formattedDatasetName = DataLabelingServiceClient.formatDatasetName( + // "YOUR_PROJECT_ID", "YOUR_DATASET_UUID"); + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + + HumanAnnotationConfig humanAnnotationConfig = + HumanAnnotationConfig.newBuilder() + .setAnnotatedDatasetDisplayName("annotated_displayname") + .setAnnotatedDatasetDescription("annotated_description") + .setLanguageCode("en-us") + .setInstruction(formattedInstructionName) + .build(); + + SentimentConfig sentimentConfig = + SentimentConfig.newBuilder().setEnableLabelSentimentSelection(false).build(); + + TextClassificationConfig textClassificationConfig = + TextClassificationConfig.newBuilder() + .setAnnotationSpecSet(formattedAnnotationSpecSetName) + .setSentimentConfig(sentimentConfig) + .build(); + + LabelTextRequest labelTextRequest = + LabelTextRequest.newBuilder() + .setParent(formattedDatasetName) + .setBasicConfig(humanAnnotationConfig) + .setTextClassificationConfig(textClassificationConfig) + .setFeature(Feature.TEXT_CLASSIFICATION) + .build(); + + OperationFuture operation = + dataLabelingServiceClient.labelTextAsync(labelTextRequest); + + // You'll want to save this for later to retrieve your completed operation. + // System.out.format("Operation Name: %s\n", operation.getName()); + + // Cancel the operation to avoid charges when testing. + dataLabelingServiceClient.getOperationsClient().cancelOperation(operation.getName()); + + } catch (IOException | InterruptedException | ExecutionException e) { + e.printStackTrace(); + } + } +} +// [END datalabeling_label_text_beta] diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java new file mode 100644 index 00000000000..b5705cf32fb --- /dev/null +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java @@ -0,0 +1,83 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +// [START datalabeling_label_video_beta] +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.HumanAnnotationConfig; +import com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata; +import com.google.cloud.datalabeling.v1beta1.LabelVideoRequest; +import com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature; +import com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig; +import com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig; +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +class LabelVideo { + + // Start a Video Labeling Task + static void labelVideo(String formattedInstructionName, String formattedAnnotationSpecSetName, + String formattedDatasetName) { + // String formattedInstructionName = DataLabelingServiceClient.formatInstructionName( + // "YOUR_PROJECT_ID", "YOUR_INSTRUCTION_UUID"); + // String formattedAnnotationSpecSetName = + // DataLabelingServiceClient.formatAnnotationSpecSetName( + // "YOUR_PROJECT_ID", "YOUR_ANNOTATION_SPEC_SET_UUID"); + // String formattedDatasetName = DataLabelingServiceClient.formatDatasetName( + // "YOUR_PROJECT_ID", "YOUR_DATASET_UUID"); + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + + HumanAnnotationConfig humanAnnotationConfig = HumanAnnotationConfig.newBuilder() + .setAnnotatedDatasetDisplayName("annotated_displayname") + .setAnnotatedDatasetDescription("annotated_description") + .setInstruction(formattedInstructionName) + .build(); + + AnnotationSpecSetConfig annotationSpecSetConfig = AnnotationSpecSetConfig.newBuilder() + .setAnnotationSpecSet(formattedAnnotationSpecSetName) + .setAllowMultiLabel(true) + .build(); + + VideoClassificationConfig videoClassificationConfig = VideoClassificationConfig.newBuilder() + .setApplyShotDetection(true) + .addAnnotationSpecSetConfigs(annotationSpecSetConfig) + .build(); + + LabelVideoRequest labelVideoRequest = LabelVideoRequest.newBuilder() + .setParent(formattedDatasetName) + .setBasicConfig(humanAnnotationConfig) + .setVideoClassificationConfig(videoClassificationConfig) + .setFeature(Feature.CLASSIFICATION) + .build(); + + OperationFuture operation = + dataLabelingServiceClient.labelVideoAsync(labelVideoRequest); + + // You'll want to save this for later to retrieve your completed operation. + System.out.format("Operation Name: %s\n", operation.getName()); + + // Cancel the operation to avoid charges when testing. + dataLabelingServiceClient.getOperationsClient().cancelOperation(operation.getName()); + } catch (IOException | InterruptedException | ExecutionException e) { + e.printStackTrace(); + } + } +} +// [END datalabeling_label_video_beta] \ No newline at end of file diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java new file mode 100644 index 00000000000..3ee1103d960 --- /dev/null +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java @@ -0,0 +1,89 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +import static org.junit.Assert.assertThat; + +import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest; +import com.google.cloud.datalabeling.v1beta1.ProjectName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.hamcrest.CoreMatchers; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** + * Integration (system) tests for {@link CreateAnnotationSpecSet}. + */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class CreateAnnotationSpecSetIT { + + private ByteArrayOutputStream bout; + + private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + System.setOut(new PrintStream(bout)); + } + + @After + public void tearDown() { + System.setOut(null); + bout.reset(); + + // Delete the Annotation Spec Sheet + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + ProjectName projectName = ProjectName.of(PROJECT_ID); + ListAnnotationSpecSetsRequest listRequest = ListAnnotationSpecSetsRequest.newBuilder() + .setParent(projectName.toString()) + .build(); + + ListAnnotationSpecSetsPagedResponse response = dataLabelingServiceClient + .listAnnotationSpecSets(listRequest); + + for (AnnotationSpecSet annotationSpecSet : response.getPage().iterateAll()) { + if (annotationSpecSet.getDisplayName().equals("YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME")) { + dataLabelingServiceClient.deleteAnnotationSpecSet(annotationSpecSet.getName()); + } + } + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + public void testCreateAnnotationSpecSet() { + CreateAnnotationSpecSet.createAnnotationSpecSet(PROJECT_ID); + + String output = bout.toString(); + + assertThat(output, CoreMatchers.containsString( + "DisplayName: YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME")); + assertThat(output, CoreMatchers.containsString("Description: YOUR_DESCRIPTION")); + assertThat(output, CoreMatchers.containsString("Annotation Count: 2")); + } +} diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java new file mode 100644 index 00000000000..b8b57a54394 --- /dev/null +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java @@ -0,0 +1,89 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +import static org.junit.Assert.assertThat; + +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListDatasetsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.Dataset; +import com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest; +import com.google.cloud.datalabeling.v1beta1.ProjectName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.hamcrest.CoreMatchers; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** + * Integration (system) tests for {@link CreateDataset}. + */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class CreateDatasetIT { + + private ByteArrayOutputStream bout; + + private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + private static String datasetName = "CREATE_DATASET_NAME"; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + System.setOut(new PrintStream(bout)); + } + + @After + public void tearDown() { + System.setOut(null); + bout.reset(); + + // Delete the Dataset + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + ProjectName projectName = ProjectName.of(PROJECT_ID); + ListDatasetsRequest listRequest = ListDatasetsRequest.newBuilder() + .setParent(projectName.toString()) + .build(); + + ListDatasetsPagedResponse response = dataLabelingServiceClient + .listDatasets(listRequest); + + for (Dataset dataset : response.getPage().iterateAll()) { + if (dataset.getDisplayName().equals(datasetName)) { + dataLabelingServiceClient.deleteDataset(dataset.getName()); + } + } + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + public void testCreateDataset() { + CreateDataset.createDataset(PROJECT_ID,datasetName); + + String output = bout.toString(); + + assertThat(output, CoreMatchers.containsString( + "DisplayName: CREATE_DATASET_NAME")); + assertThat(output, CoreMatchers.containsString("Description: YOUR_DESCRIPTION")); + } +} diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java new file mode 100644 index 00000000000..d80230d4c83 --- /dev/null +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java @@ -0,0 +1,92 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +import static org.junit.Assert.assertThat; + +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListInstructionsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.Instruction; +import com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest; +import com.google.cloud.datalabeling.v1beta1.ProjectName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.hamcrest.CoreMatchers; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** + * Integration (system) tests for {@link CreateInstruction}. + */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class CreateInstructionIT { + + private ByteArrayOutputStream bout; + + private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + private static String GCS_SOURCE_URI = + "gs://cloud-samples-data/datalabeling/instruction/test.pdf"; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + System.setOut(new PrintStream(bout)); + } + + @After + public void tearDown() { + System.setOut(null); + bout.reset(); + + // Delete the Instruction + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + ProjectName projectName = ProjectName.of(PROJECT_ID); + ListInstructionsRequest listRequest = ListInstructionsRequest.newBuilder() + .setParent(projectName.toString()) + .build(); + + ListInstructionsPagedResponse response = dataLabelingServiceClient + .listInstructions(listRequest); + + for (Instruction instruction : response.getPage().iterateAll()) { + if (instruction.getDisplayName().equals("YOUR_INSTRUCTION_DISPLAY_NAME")) { + dataLabelingServiceClient.deleteInstruction(instruction.getName()); + } + } + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + public void testCreateInstruction() { + CreateInstruction.createInstruction(PROJECT_ID, GCS_SOURCE_URI); + + String output = bout.toString(); + + assertThat(output, CoreMatchers.containsString( + "DisplayName: YOUR_INSTRUCTION_DISPLAY_NAME")); + assertThat(output, CoreMatchers.containsString("Description: YOUR_DESCRIPTION")); + assertThat(output, CoreMatchers.containsString( + String.format("GCS SOURCE URI: %s", GCS_SOURCE_URI))); + } +} diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java new file mode 100644 index 00000000000..bf7fd2396b2 --- /dev/null +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java @@ -0,0 +1,112 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +import static org.junit.Assert.assertThat; + +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListDatasetsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.Dataset; +import com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest; +import com.google.cloud.datalabeling.v1beta1.ProjectName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.hamcrest.CoreMatchers; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** + * Integration (system) tests for {@link ImportData}. + */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class ImportDataIT { + + private ByteArrayOutputStream bout; + + private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + private static String GCS_SOURCE_URI = + "gs://cloud-samples-data/datalabeling/image/image_dataset.csv"; + private static String datasetName = "IMPORT_DATASET_NAME"; + + private static Dataset dataset; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + System.setOut(new PrintStream(bout)); + + CreateDataset.createDataset(PROJECT_ID,datasetName); + + // Get the Dataset + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + ProjectName projectName = ProjectName.of(PROJECT_ID); + ListDatasetsRequest listRequest = ListDatasetsRequest.newBuilder() + .setParent(projectName.toString()) + .build(); + + ListDatasetsPagedResponse response = dataLabelingServiceClient + .listDatasets(listRequest); + + for (Dataset returnedDataset : response.getPage().iterateAll()) { + if (returnedDataset.getDisplayName().equals("IMPORT_DATASET_NAME")) { + dataset = returnedDataset; + } + } + } catch (IOException e) { + e.printStackTrace(); + } + } + + @After + public void tearDown() { + System.setOut(null); + bout.reset(); + + // Delete the Dataset + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + ProjectName projectName = ProjectName.of(PROJECT_ID); + ListDatasetsRequest listRequest = ListDatasetsRequest.newBuilder() + .setParent(projectName.toString()) + .build(); + + ListDatasetsPagedResponse response = dataLabelingServiceClient + .listDatasets(listRequest); + + for (Dataset returnedDataset : response.getPage().iterateAll()) { + if (returnedDataset.getDisplayName().equals("IMPORT_DATASET_NAME")) { + dataLabelingServiceClient.deleteDataset(returnedDataset.getName()); + } + } + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + public void testImportDataset() { + ImportData.importData(dataset.getName(), GCS_SOURCE_URI); + + String output = bout.toString(); + + assertThat(output, CoreMatchers.containsString("Imported items: 3")); + } +} diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java new file mode 100644 index 00000000000..718aaa32390 --- /dev/null +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java @@ -0,0 +1,134 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListDatasetsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListInstructionsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.Dataset; +import com.google.cloud.datalabeling.v1beta1.Instruction; +import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest; +import com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest; +import com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest; +import com.google.cloud.datalabeling.v1beta1.ProjectName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** + * Integration (system) tests for {@link LabelImage}. + */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class LabelImageIT { + private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + + private static String DATASET_GCS_SOURCE_URI = + "gs://cloud-samples-data/datalabeling/image/image_dataset.csv"; + private static String INSTRUCTION_GCS_SOURCE_URI = + "gs://cloud-samples-data/datalabeling/instruction/test.pdf"; + private static String datsetName = "LABEL_IMAGE_DATASET_NAME"; + + private Dataset dataset; + private Instruction instruction; + private AnnotationSpecSet annotationSpecSet; + + @Before + public void setUp() { + System.setOut(new PrintStream(new ByteArrayOutputStream())); + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // Create the dataset + CreateDataset.createDataset(PROJECT_ID,datsetName); + ProjectName projectName = ProjectName.of(PROJECT_ID); + + // Get the Dataset + ListDatasetsRequest datasetsRequest = ListDatasetsRequest.newBuilder() + .setParent(projectName.toString()) + .build(); + ListDatasetsPagedResponse datasetsResponse = dataLabelingServiceClient + .listDatasets(datasetsRequest); + for (Dataset returnedDataset : datasetsResponse.getPage().iterateAll()) { + if (returnedDataset.getDisplayName().equals("LABEL_IMAGE_DATASET_NAME")) { + dataset = returnedDataset; + } + } + + // Import the images + ImportData.importData(dataset.getName(), DATASET_GCS_SOURCE_URI); + + // Create the instruction + CreateInstruction.createInstruction(PROJECT_ID, INSTRUCTION_GCS_SOURCE_URI); + + // Create the annotation spec set + CreateAnnotationSpecSet.createAnnotationSpecSet(PROJECT_ID); + + // Get the instruction + ListInstructionsRequest instructionsRequest = ListInstructionsRequest.newBuilder() + .setParent(projectName.toString()) + .build(); + ListInstructionsPagedResponse instructionsResponse = dataLabelingServiceClient + .listInstructions(instructionsRequest); + for (Instruction returnedInstruction : instructionsResponse.getPage().iterateAll()) { + if (returnedInstruction.getDisplayName().equals("YOUR_INSTRUCTION_DISPLAY_NAME")) { + instruction = returnedInstruction; + } + } + + // Get the annotation spec set + ListAnnotationSpecSetsRequest annotationRequest = ListAnnotationSpecSetsRequest.newBuilder() + .setParent(projectName.toString()) + .build(); + ListAnnotationSpecSetsPagedResponse annotationsResponse = dataLabelingServiceClient + .listAnnotationSpecSets(annotationRequest); + for (AnnotationSpecSet returnedAnnotation : annotationsResponse.getPage().iterateAll()) { + if (returnedAnnotation.getDisplayName().equals("YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME")) { + annotationSpecSet = returnedAnnotation; + } + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + @After + public void tearDown() { + System.setOut(null); + + // Delete the created dataset. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + dataLabelingServiceClient.deleteDataset(dataset.getName()); + dataLabelingServiceClient.deleteInstruction(instruction.getName()); + dataLabelingServiceClient.deleteAnnotationSpecSet(annotationSpecSet.getName()); + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + public void testLabelImage() { + // Start the labeling task + LabelImage.labelImage(instruction.getName(), annotationSpecSet.getName(), dataset.getName()); + } +} diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelTextIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelTextIT.java new file mode 100644 index 00000000000..f6379ed1e04 --- /dev/null +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelTextIT.java @@ -0,0 +1,152 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListDatasetsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListInstructionsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.DataType; +import com.google.cloud.datalabeling.v1beta1.Dataset; +import com.google.cloud.datalabeling.v1beta1.GcsSource; +import com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse; +import com.google.cloud.datalabeling.v1beta1.ImportDataRequest; +import com.google.cloud.datalabeling.v1beta1.InputConfig; +import com.google.cloud.datalabeling.v1beta1.Instruction; +import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest; +import com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest; +import com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest; +import com.google.cloud.datalabeling.v1beta1.ProjectName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Integration (system) tests for {@link LabelText}. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class LabelTextIT { + private static String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private static String DATASET_GCS_SOURCE_URI = + "gs://cloud-samples-data/datalabeling/text/text_dataset.csv"; + private static String INSTRUCTION_GCS_SOURCE_URI = + "gs://cloud-samples-data/datalabeling/instruction/test.pdf"; + private static String datasetName = "LABEL_TEXT_DATASET_NAME"; + private Dataset dataset; + private Instruction instruction; + private AnnotationSpecSet annotationSpecSet; + + @Before + public void setUp() { + System.setOut(new PrintStream(new ByteArrayOutputStream())); + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // Create the dataset + CreateDataset.createDataset(PROJECT_ID, datasetName); + ProjectName projectName = ProjectName.of(PROJECT_ID); + // Get the Dataset + ListDatasetsRequest datasetsRequest = + ListDatasetsRequest.newBuilder().setParent(projectName.toString()).build(); + ListDatasetsPagedResponse datasetsResponse = + dataLabelingServiceClient.listDatasets(datasetsRequest); + for (Dataset returnedDataset : datasetsResponse.getPage().iterateAll()) { + if (returnedDataset.getDisplayName().equals("LABEL_TEXT_DATASET_NAME")) { + dataset = returnedDataset; + } + } + + // Import the texts + GcsSource gcsSource = + GcsSource.newBuilder() + .setInputUri(DATASET_GCS_SOURCE_URI) + .setMimeType("text/csv") + .build(); + + InputConfig inputConfig = + InputConfig.newBuilder() + .setDataType(DataType.TEXT) // DataTypes: AUDIO, IMAGE, VIDEO, TEXT + .setGcsSource(gcsSource) + .build(); + + ImportDataRequest importDataRequest = + ImportDataRequest.newBuilder() + .setName(dataset.getName()) + .setInputConfig(inputConfig) + .build(); + + ImportDataOperationResponse response = + dataLabelingServiceClient.importDataAsync(importDataRequest).get(); + System.out.format("Imported items: %d\n", response.getImportCount()); + + // Create the instruction + CreateInstruction.createInstruction(PROJECT_ID, INSTRUCTION_GCS_SOURCE_URI); + + // Create the annotation spec set + CreateAnnotationSpecSet.createAnnotationSpecSet(PROJECT_ID); + + // Get the instruction + ListInstructionsRequest instructionsRequest = + ListInstructionsRequest.newBuilder().setParent(projectName.toString()).build(); + ListInstructionsPagedResponse instructionsResponse = + dataLabelingServiceClient.listInstructions(instructionsRequest); + for (Instruction returnedInstruction : instructionsResponse.getPage().iterateAll()) { + if (returnedInstruction.getDisplayName().equals("YOUR_INSTRUCTION_DISPLAY_NAME")) { + instruction = returnedInstruction; + } + } + + // Get the annotation spec set + ListAnnotationSpecSetsRequest annotationRequest = + ListAnnotationSpecSetsRequest.newBuilder().setParent(projectName.toString()).build(); + ListAnnotationSpecSetsPagedResponse annotationsResponse = + dataLabelingServiceClient.listAnnotationSpecSets(annotationRequest); + for (AnnotationSpecSet returnedAnnotation : annotationsResponse.getPage().iterateAll()) { + if (returnedAnnotation.getDisplayName().equals("YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME")) { + annotationSpecSet = returnedAnnotation; + } + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + @After + public void tearDown() { + System.setOut(null); + + // Delete the created dataset. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + dataLabelingServiceClient.deleteDataset(dataset.getName()); + dataLabelingServiceClient.deleteInstruction(instruction.getName()); + dataLabelingServiceClient.deleteAnnotationSpecSet(annotationSpecSet.getName()); + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + public void testLabelText() { + // Start the labeling task + LabelText.labelText(instruction.getName(), annotationSpecSet.getName(), dataset.getName()); + } +} diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelVideoIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelVideoIT.java new file mode 100644 index 00000000000..409df270bbf --- /dev/null +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelVideoIT.java @@ -0,0 +1,154 @@ +/* + * Copyright 2019 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 + * + * http://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.example.datalabeling; + +import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListDatasetsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListInstructionsPagedResponse; +import com.google.cloud.datalabeling.v1beta1.DataType; +import com.google.cloud.datalabeling.v1beta1.Dataset; +import com.google.cloud.datalabeling.v1beta1.GcsSource; +import com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse; +import com.google.cloud.datalabeling.v1beta1.ImportDataRequest; +import com.google.cloud.datalabeling.v1beta1.InputConfig; +import com.google.cloud.datalabeling.v1beta1.Instruction; +import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest; +import com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest; +import com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest; +import com.google.cloud.datalabeling.v1beta1.ProjectName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Integration (system) tests for {@link LabelVideo}. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class LabelVideoIT { + private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + + private static String DATASET_GCS_SOURCE_URI = + "gs://cloud-samples-data/datalabeling/videos/video_dataset.csv"; + private static String INSTRUCTION_GCS_SOURCE_URI = + "gs://cloud-samples-data/datalabeling/instruction/test.pdf"; + private static String datasetName = "LABEL_VIDEO_DATASET_NAME"; + + private Dataset dataset; + private Instruction instruction; + private AnnotationSpecSet annotationSpecSet; + + @Before + public void setUp() { + System.setOut(new PrintStream(new ByteArrayOutputStream())); + + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // Create the dataset + CreateDataset.createDataset(PROJECT_ID, datasetName); + ProjectName projectName = ProjectName.of(PROJECT_ID); + // Get the Dataset + ListDatasetsRequest datasetsRequest = + ListDatasetsRequest.newBuilder().setParent(projectName.toString()).build(); + ListDatasetsPagedResponse datasetsResponse = + dataLabelingServiceClient.listDatasets(datasetsRequest); + for (Dataset returnedDataset : datasetsResponse.getPage().iterateAll()) { + if (returnedDataset.getDisplayName().equals("LABEL_VIDEO_DATASET_NAME")) { + dataset = returnedDataset; + } + } + + // Import the images + // ImportData.importData(dataset.getName(), DATASET_GCS_SOURCE_URI); + GcsSource gcsSource = + GcsSource.newBuilder() + .setInputUri(DATASET_GCS_SOURCE_URI) + .setMimeType("text/csv") + .build(); + + InputConfig inputConfig = + InputConfig.newBuilder() + .setDataType(DataType.VIDEO) // DataTypes: AUDIO, IMAGE, VIDEO, TEXT + .setGcsSource(gcsSource) + .build(); + + ImportDataRequest importDataRequest = + ImportDataRequest.newBuilder() + .setName(dataset.getName()) + .setInputConfig(inputConfig) + .build(); + + ImportDataOperationResponse response = + dataLabelingServiceClient.importDataAsync(importDataRequest).get(); + System.out.format("Imported items: %d\n", response.getImportCount()); + + // Create the instruction + CreateInstruction.createInstruction(PROJECT_ID, INSTRUCTION_GCS_SOURCE_URI); + + // Create the annotation spec set + CreateAnnotationSpecSet.createAnnotationSpecSet(PROJECT_ID); + + // Get the instruction + ListInstructionsRequest instructionsRequest = + ListInstructionsRequest.newBuilder().setParent(projectName.toString()).build(); + ListInstructionsPagedResponse instructionsResponse = + dataLabelingServiceClient.listInstructions(instructionsRequest); + for (Instruction returnedInstruction : instructionsResponse.getPage().iterateAll()) { + if (returnedInstruction.getDisplayName().equals("YOUR_INSTRUCTION_DISPLAY_NAME")) { + instruction = returnedInstruction; + } + } + + // Get the annotation spec set + ListAnnotationSpecSetsRequest annotationRequest = + ListAnnotationSpecSetsRequest.newBuilder().setParent(projectName.toString()).build(); + ListAnnotationSpecSetsPagedResponse annotationsResponse = + dataLabelingServiceClient.listAnnotationSpecSets(annotationRequest); + for (AnnotationSpecSet returnedAnnotation : annotationsResponse.getPage().iterateAll()) { + if (returnedAnnotation.getDisplayName().equals("YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME")) { + annotationSpecSet = returnedAnnotation; + } + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + @After + public void tearDown() { + System.setOut(null); + + // Delete the created dataset. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + dataLabelingServiceClient.deleteDataset(dataset.getName()); + dataLabelingServiceClient.deleteInstruction(instruction.getName()); + dataLabelingServiceClient.deleteAnnotationSpecSet(annotationSpecSet.getName()); + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + public void testLabelVideo() { + // Start the labeling task + LabelVideo.labelVideo(instruction.getName(), annotationSpecSet.getName(), dataset.getName()); + } +} From 596a2444e9c4c4e59638798428bcce7ff103be20 Mon Sep 17 00:00:00 2001 From: Dane Zeke Liergaard Date: Tue, 17 Dec 2019 14:26:36 -0800 Subject: [PATCH 027/135] samples: Use test endpoint for datalabeling integration tests. (#1803) * Use test endpoint for datalabeling integration tests. * Fix formatting * Fix typo * Fix formatting * Add quotes to variable * Add execeptions to method signitures. --- .../datalabeling/CreateAnnotationSpecSet.java | 47 +++++++++++++------ .../example/datalabeling/CreateDataset.java | 37 +++++++++++---- .../datalabeling/CreateInstruction.java | 18 ++++++- .../com/example/datalabeling/ExportData.java | 22 +++++++-- .../com/example/datalabeling/ImportData.java | 19 +++++++- .../com/example/datalabeling/LabelImage.java | 18 ++++++- .../com/example/datalabeling/LabelText.java | 18 ++++++- .../com/example/datalabeling/LabelVideo.java | 20 ++++++-- .../CreateAnnotationSpecSetIT.java | 4 +- .../example/datalabeling/CreateDatasetIT.java | 4 +- .../datalabeling/CreateInstructionIT.java | 4 +- .../example/datalabeling/ImportDataIT.java | 6 ++- .../example/datalabeling/LabelImageIT.java | 4 +- .../com/example/datalabeling/LabelTextIT.java | 4 +- .../example/datalabeling/LabelVideoIT.java | 4 +- 15 files changed, 182 insertions(+), 47 deletions(-) diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java index 28626466ef8..1564fdf509c 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java @@ -21,6 +21,7 @@ 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.DataLabelingServiceSettings; import com.google.cloud.datalabeling.v1beta1.ProjectName; import java.io.IOException; import java.util.ArrayList; @@ -32,36 +33,52 @@ class CreateAnnotationSpecSet { // Create an annotation spec set. - static void createAnnotationSpecSet(String projectId) { + static void createAnnotationSpecSet(String projectId) throws IOException { // String projectId = "YOUR_PROJECT_ID"; Map annotationLabels = new HashMap<>(); annotationLabels.put("label_1", "label_1_description"); annotationLabels.put("label_2", "label_2_description"); - try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // [END datalabeling_create_annotation_spec_set_beta] + String endpoint = System.getenv("DATALABELING_ENDPOINT"); + if (endpoint == null) { + endpoint = DataLabelingServiceSettings.getDefaultEndpoint(); + } + // [START datalabeling_create_annotation_spec_set_beta] + DataLabelingServiceSettings settings = DataLabelingServiceSettings + .newBuilder() + // [END datalabeling_create_annotation_spec_set_beta] + .setEndpoint(endpoint) + // [START datalabeling_create_annotation_spec_set_beta] + .build(); + try (DataLabelingServiceClient dataLabelingServiceClient = + DataLabelingServiceClient.create(settings)) { ProjectName projectName = ProjectName.of(projectId); List annotationSpecs = new ArrayList<>(); for (Entry entry : annotationLabels.entrySet()) { - AnnotationSpec annotationSpec = AnnotationSpec.newBuilder() - .setDisplayName(entry.getKey()) - .setDescription(entry.getValue()) - .build(); + AnnotationSpec annotationSpec = + AnnotationSpec.newBuilder() + .setDisplayName(entry.getKey()) + .setDescription(entry.getValue()) + .build(); annotationSpecs.add(annotationSpec); } - AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder() - .setDisplayName("YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME") - .setDescription("YOUR_DESCRIPTION") - .addAllAnnotationSpecs(annotationSpecs) - .build(); + AnnotationSpecSet annotationSpecSet = + AnnotationSpecSet.newBuilder() + .setDisplayName("YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME") + .setDescription("YOUR_DESCRIPTION") + .addAllAnnotationSpecs(annotationSpecs) + .build(); - CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder() - .setAnnotationSpecSet(annotationSpecSet) - .setParent(projectName.toString()) - .build(); + CreateAnnotationSpecSetRequest request = + CreateAnnotationSpecSetRequest.newBuilder() + .setAnnotationSpecSet(annotationSpecSet) + .setParent(projectName.toString()) + .build(); AnnotationSpecSet result = dataLabelingServiceClient.createAnnotationSpecSet(request); diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java index b8eceb820e1..b3c13bc5ec8 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java @@ -19,6 +19,7 @@ // [START datalabeling_create_dataset_beta] import com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest; import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings; import com.google.cloud.datalabeling.v1beta1.Dataset; import com.google.cloud.datalabeling.v1beta1.ProjectName; import java.io.IOException; @@ -26,22 +27,38 @@ class CreateDataset { // Create a dataset that is initially empty. - static void createDataset(String projectId, String datasetName) { + static void createDataset(String projectId, String datasetName) throws IOException { // String projectId = "YOUR_PROJECT_ID"; // String datasetName = "YOUR_DATASET_DISPLAY_NAME"; - try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // [END datalabeling_create_dataset_beta] + String endpoint = System.getenv("DATALABELING_ENDPOINT"); + if (endpoint == null) { + endpoint = DataLabelingServiceSettings.getDefaultEndpoint(); + } + // [START datalabeling_create_dataset_beta] + + DataLabelingServiceSettings settings = DataLabelingServiceSettings + .newBuilder() + // [END datalabeling_create_dataset_beta] + .setEndpoint(endpoint) + // [START datalabeling_create_dataset_beta] + .build(); + try (DataLabelingServiceClient dataLabelingServiceClient = + DataLabelingServiceClient.create(settings)) { ProjectName projectName = ProjectName.of(projectId); - Dataset dataset = Dataset.newBuilder() - .setDisplayName(datasetName) - .setDescription("YOUR_DESCRIPTION") - .build(); + Dataset dataset = + Dataset.newBuilder() + .setDisplayName(datasetName) + .setDescription("YOUR_DESCRIPTION") + .build(); - CreateDatasetRequest createDatasetRequest = CreateDatasetRequest.newBuilder() - .setParent(projectName.toString()) - .setDataset(dataset) - .build(); + CreateDatasetRequest createDatasetRequest = + CreateDatasetRequest.newBuilder() + .setParent(projectName.toString()) + .setDataset(dataset) + .build(); Dataset createdDataset = dataLabelingServiceClient.createDataset(createDatasetRequest); diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java index ab56b3eeed0..ac06bd3786d 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java @@ -21,6 +21,7 @@ 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.DataLabelingServiceSettings; import com.google.cloud.datalabeling.v1beta1.DataType; import com.google.cloud.datalabeling.v1beta1.Instruction; import com.google.cloud.datalabeling.v1beta1.PdfInstruction; @@ -31,12 +32,25 @@ class CreateInstruction { // Create a instruction for a dataset. - static void createInstruction(String projectId, String pdfUri) { + static void createInstruction(String projectId, String pdfUri) throws IOException { // String projectId = "YOUR_PROJECT_ID"; // String pdfUri = "gs://YOUR_BUCKET_ID/path_to_pdf_or_csv"; - try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // [END datalabeling_create_instruction_beta] + String endpoint = System.getenv("DATALABELING_ENDPOINT"); + if (endpoint == null) { + endpoint = DataLabelingServiceSettings.getDefaultEndpoint(); + } + // [START datalabeling_create_instruction_beta] + DataLabelingServiceSettings settings = DataLabelingServiceSettings + .newBuilder() + // [END datalabeling_create_instruction_beta] + .setEndpoint(endpoint) + // [START datalabeling_create_instruction_beta] + .build(); + try (DataLabelingServiceClient dataLabelingServiceClient = + DataLabelingServiceClient.create(settings)) { ProjectName projectName = ProjectName.of(projectId); // There are two types of instructions: CSV (CsvInstruction) or PDF (PdfInstruction) diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java index 9b73085cc0e..d38c5c71617 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java @@ -19,6 +19,7 @@ // [START datalabeling_export_data_beta] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings; import com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata; import com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse; import com.google.cloud.datalabeling.v1beta1.ExportDataRequest; @@ -33,7 +34,8 @@ class ExportData { // Export data from an annotated dataset. - static void exportData(String datasetName, String annotatedDatasetName, String gcsOutputUri) { + static void exportData(String datasetName, String annotatedDatasetName, String gcsOutputUri) + throws IOException { // String datasetName = DataLabelingServiceClient.formatDatasetName( // "YOUR_PROJECT_ID", "YOUR_DATASETS_UUID"); // String annotatedDatasetName = DataLabelingServiceClient.formatAnnotatedDatasetName( @@ -42,7 +44,21 @@ static void exportData(String datasetName, String annotatedDatasetName, String g // "YOUR_ANNOTATED_DATASET_UUID"); // String gcsOutputUri = "gs://YOUR_BUCKET_ID/export_path"; - try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // [END datalabeling_export_data_beta] + String endpoint = System.getenv("DATALABELING_ENDPOINT"); + if (endpoint == null) { + endpoint = DataLabelingServiceSettings.getDefaultEndpoint(); + } + // [START datalabeling_export_data_beta] + + DataLabelingServiceSettings settings = DataLabelingServiceSettings + .newBuilder() + // [END datalabeling_export_data_beta] + .setEndpoint(endpoint) + // [START datalabeling_export_data_beta] + .build(); + try (DataLabelingServiceClient dataLabelingServiceClient = + DataLabelingServiceClient.create(settings)) { GcsDestination gcsDestination = GcsDestination.newBuilder() .setOutputUri(gcsOutputUri) .setMimeType("text/csv") @@ -75,4 +91,4 @@ static void exportData(String datasetName, String annotatedDatasetName, String g } } } -// [END datalabeling_export_data_beta] \ No newline at end of file +// [END datalabeling_export_data_beta] diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java index f0e8c46dc13..ec1b36fbe9e 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java @@ -19,6 +19,7 @@ // [START datalabeling_import_data_beta] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings; import com.google.cloud.datalabeling.v1beta1.DataType; import com.google.cloud.datalabeling.v1beta1.GcsSource; import com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata; @@ -31,12 +32,26 @@ class ImportData { // Import data to an existing dataset. - static void importData(String datasetName, String gcsSourceUri) { + static void importData(String datasetName, String gcsSourceUri) throws IOException { // String datasetName = DataLabelingServiceClient.formatDatasetName( // "YOUR_PROJECT_ID", "YOUR_DATASETS_UUID"); // String gcsSourceUri = "gs://YOUR_BUCKET_ID/path_to_data"; - try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // [END datalabeling_import_data_beta] + String endpoint = System.getenv("DATALABELING_ENDPOINT"); + if (endpoint == null) { + endpoint = DataLabelingServiceSettings.getDefaultEndpoint(); + } + // [START datalabeling_import_data_beta] + + DataLabelingServiceSettings settings = DataLabelingServiceSettings + .newBuilder() + // [END datalabeling_import_data_beta] + .setEndpoint(endpoint) + // [START datalabeling_import_data_beta] + .build(); + try (DataLabelingServiceClient dataLabelingServiceClient = + DataLabelingServiceClient.create(settings)) { GcsSource gcsSource = GcsSource.newBuilder() .setInputUri(gcsSourceUri) .setMimeType("text/csv") diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java index 35f2503d1d8..e00c9805162 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java @@ -20,6 +20,7 @@ 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.DataLabelingServiceSettings; import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig; import com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig; import com.google.cloud.datalabeling.v1beta1.LabelImageRequest; @@ -35,7 +36,7 @@ class LabelImage { static void labelImage( String formattedInstructionName, String formattedAnnotationSpecSetName, - String formattedDatasetName) { + String formattedDatasetName) throws IOException { // String formattedInstructionName = DataLabelingServiceClient.formatInstructionName( // "YOUR_PROJECT_ID", "YOUR_INSTRUCTION_UUID"); // String formattedAnnotationSpecSetName = @@ -44,8 +45,21 @@ static void labelImage( // String formattedDatasetName = DataLabelingServiceClient.formatDatasetName( // "YOUR_PROJECT_ID", "YOUR_DATASET_UUID"); - try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // [END datalabeling_label_image_beta] + String endpoint = System.getenv("DATALABELING_ENDPOINT"); + if (endpoint == null) { + endpoint = DataLabelingServiceSettings.getDefaultEndpoint(); + } + // [START datalabeling_label_image_beta] + DataLabelingServiceSettings settings = DataLabelingServiceSettings + .newBuilder() + // [END datalabeling_label_image_beta] + .setEndpoint(endpoint) + // [START datalabeling_label_image_beta] + .build(); + try (DataLabelingServiceClient dataLabelingServiceClient = + DataLabelingServiceClient.create(settings)) { HumanAnnotationConfig humanAnnotationConfig = HumanAnnotationConfig.newBuilder() .setAnnotatedDatasetDisplayName("annotated_displayname") diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java index 2ff411f0dd8..2ebcfee575e 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java @@ -20,6 +20,7 @@ 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.DataLabelingServiceSettings; import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig; import com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata; import com.google.cloud.datalabeling.v1beta1.LabelTextRequest; @@ -35,7 +36,7 @@ class LabelText { static void labelText( String formattedInstructionName, String formattedAnnotationSpecSetName, - String formattedDatasetName) { + String formattedDatasetName) throws IOException { // String formattedInstructionName = DataLabelingServiceClient.formatInstructionName( // "YOUR_PROJECT_ID", "YOUR_INSTRUCTION_UUID"); // String formattedAnnotationSpecSetName = @@ -44,8 +45,21 @@ static void labelText( // String formattedDatasetName = DataLabelingServiceClient.formatDatasetName( // "YOUR_PROJECT_ID", "YOUR_DATASET_UUID"); - try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // [END datalabeling_label_text_beta] + String endpoint = System.getenv("DATALABELING_ENDPOINT"); + if (endpoint == null) { + endpoint = DataLabelingServiceSettings.getDefaultEndpoint(); + } + // [START datalabeling_label_text_beta] + DataLabelingServiceSettings settings = DataLabelingServiceSettings + .newBuilder() + // [END datalabeling_label_text_beta] + .setEndpoint(endpoint) + // [START datalabeling_label_text_beta] + .build(); + try (DataLabelingServiceClient dataLabelingServiceClient = + DataLabelingServiceClient.create(settings)) { HumanAnnotationConfig humanAnnotationConfig = HumanAnnotationConfig.newBuilder() .setAnnotatedDatasetDisplayName("annotated_displayname") diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java index b5705cf32fb..a84b0bf1ed2 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java @@ -20,6 +20,7 @@ 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.DataLabelingServiceSettings; import com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig; import com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata; import com.google.cloud.datalabeling.v1beta1.LabelVideoRequest; @@ -33,7 +34,7 @@ class LabelVideo { // Start a Video Labeling Task static void labelVideo(String formattedInstructionName, String formattedAnnotationSpecSetName, - String formattedDatasetName) { + String formattedDatasetName) throws IOException { // String formattedInstructionName = DataLabelingServiceClient.formatInstructionName( // "YOUR_PROJECT_ID", "YOUR_INSTRUCTION_UUID"); // String formattedAnnotationSpecSetName = @@ -42,8 +43,21 @@ static void labelVideo(String formattedInstructionName, String formattedAnnotati // String formattedDatasetName = DataLabelingServiceClient.formatDatasetName( // "YOUR_PROJECT_ID", "YOUR_DATASET_UUID"); - try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + // [END datalabeling_label_video_beta] + String endpoint = System.getenv("DATALABELING_ENDPOINT"); + if (endpoint == null) { + endpoint = DataLabelingServiceSettings.getDefaultEndpoint(); + } + // [START datalabeling_label_video_beta] + DataLabelingServiceSettings settings = DataLabelingServiceSettings + .newBuilder() + // [END datalabeling_label_video_beta] + .setEndpoint(endpoint) + // [START datalabeling_label_video_beta] + .build(); + try (DataLabelingServiceClient dataLabelingServiceClient = + DataLabelingServiceClient.create(settings)) { HumanAnnotationConfig humanAnnotationConfig = HumanAnnotationConfig.newBuilder() .setAnnotatedDatasetDisplayName("annotated_displayname") .setAnnotatedDatasetDescription("annotated_description") @@ -80,4 +94,4 @@ static void labelVideo(String formattedInstructionName, String formattedAnnotati } } } -// [END datalabeling_label_video_beta] \ No newline at end of file +// [END datalabeling_label_video_beta] diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java index 3ee1103d960..a5f9288682a 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java @@ -29,6 +29,7 @@ import org.hamcrest.CoreMatchers; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -37,6 +38,7 @@ * Integration (system) tests for {@link CreateAnnotationSpecSet}. */ @RunWith(JUnit4.class) +@Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") public class CreateAnnotationSpecSetIT { @@ -76,7 +78,7 @@ public void tearDown() { } @Test - public void testCreateAnnotationSpecSet() { + public void testCreateAnnotationSpecSet() throws IOException { CreateAnnotationSpecSet.createAnnotationSpecSet(PROJECT_ID); String output = bout.toString(); diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java index b8b57a54394..ce4c845170e 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java @@ -29,6 +29,7 @@ import org.hamcrest.CoreMatchers; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -37,6 +38,7 @@ * Integration (system) tests for {@link CreateDataset}. */ @RunWith(JUnit4.class) +@Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") public class CreateDatasetIT { @@ -77,7 +79,7 @@ public void tearDown() { } @Test - public void testCreateDataset() { + public void testCreateDataset() throws IOException { CreateDataset.createDataset(PROJECT_ID,datasetName); String output = bout.toString(); diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java index d80230d4c83..6ebdb898fdb 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java @@ -29,6 +29,7 @@ import org.hamcrest.CoreMatchers; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -37,6 +38,7 @@ * Integration (system) tests for {@link CreateInstruction}. */ @RunWith(JUnit4.class) +@Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") public class CreateInstructionIT { @@ -78,7 +80,7 @@ public void tearDown() { } @Test - public void testCreateInstruction() { + public void testCreateInstruction() throws IOException { CreateInstruction.createInstruction(PROJECT_ID, GCS_SOURCE_URI); String output = bout.toString(); diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java index bf7fd2396b2..eb7bd787e92 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java @@ -29,6 +29,7 @@ import org.hamcrest.CoreMatchers; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -37,6 +38,7 @@ * Integration (system) tests for {@link ImportData}. */ @RunWith(JUnit4.class) +@Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") public class ImportDataIT { @@ -50,7 +52,7 @@ public class ImportDataIT { private static Dataset dataset; @Before - public void setUp() { + public void setUp() throws IOException { bout = new ByteArrayOutputStream(); System.setOut(new PrintStream(bout)); @@ -102,7 +104,7 @@ public void tearDown() { } @Test - public void testImportDataset() { + public void testImportDataset() throws IOException { ImportData.importData(dataset.getName(), GCS_SOURCE_URI); String output = bout.toString(); diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java index 718aaa32390..79e1ef79e67 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java @@ -32,6 +32,7 @@ import java.io.PrintStream; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -40,6 +41,7 @@ * Integration (system) tests for {@link LabelImage}. */ @RunWith(JUnit4.class) +@Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") public class LabelImageIT { private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); @@ -127,7 +129,7 @@ public void tearDown() { } @Test - public void testLabelImage() { + public void testLabelImage() throws IOException { // Start the labeling task LabelImage.labelImage(instruction.getName(), annotationSpecSet.getName(), dataset.getName()); } diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelTextIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelTextIT.java index f6379ed1e04..a80cac1a608 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelTextIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelTextIT.java @@ -37,12 +37,14 @@ import java.io.PrintStream; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** Integration (system) tests for {@link LabelText}. */ @RunWith(JUnit4.class) +@Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") public class LabelTextIT { private static String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); @@ -145,7 +147,7 @@ public void tearDown() { } @Test - public void testLabelText() { + public void testLabelText() throws IOException { // Start the labeling task LabelText.labelText(instruction.getName(), annotationSpecSet.getName(), dataset.getName()); } diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelVideoIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelVideoIT.java index 409df270bbf..473abad2c70 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelVideoIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelVideoIT.java @@ -37,12 +37,14 @@ import java.io.PrintStream; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** Integration (system) tests for {@link LabelVideo}. */ @RunWith(JUnit4.class) +@Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") public class LabelVideoIT { private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); @@ -147,7 +149,7 @@ public void tearDown() { } @Test - public void testLabelVideo() { + public void testLabelVideo() throws IOException { // Start the labeling task LabelVideo.labelVideo(instruction.getName(), annotationSpecSet.getName(), dataset.getName()); } From 7b36a12bf3ca1d29b1b2282b3fe153de2dbbefed Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Sep 2020 22:05:14 +0200 Subject: [PATCH 028/135] chore(deps): update dependency com.google.cloud:libraries-bom to v10 --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index cf26a6ae31f..10194714001 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.1.0 + 10.1.0 pom import From e8d48c18a40a7fcaa2f80552a5991271072df5e2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 24 Sep 2020 19:46:17 +0200 Subject: [PATCH 029/135] chore(deps): update dependency com.google.cloud:libraries-bom to v11 (#258) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `10.1.0` -> `11.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 10194714001..72e044b3498 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 10.1.0 + 11.0.0 pom import From 21caceb2b0276b5132828122b88233b083a09fd4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 6 Oct 2020 22:08:40 +0200 Subject: [PATCH 030/135] chore(deps): update dependency com.google.cloud:libraries-bom to v12 (#265) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `11.0.0` -> `12.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 72e044b3498..494d45ee82a 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 11.0.0 + 12.0.0 pom import From cfc596bff920a88d7bb9144bc8e9a98130dbf00e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Oct 2020 02:00:22 +0200 Subject: [PATCH 031/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.21 (#259) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](com/google/cloud/samples/shared-configuration) | patch | `1.0.18` -> `1.0.21` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 57ab8297276..7655311c6f9 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 893ea1faa13..3ea8759aacc 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index c4f4874b6c5..d456719ee00 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 494d45ee82a..5e63abc0a27 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 From af065a22c61af097660c082d7cb2d027bada1130 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Oct 2020 18:58:02 +0200 Subject: [PATCH 032/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.3 (#251) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | patch | `0.119.0` -> `0.119.3` | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.3`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01193-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01192v01193-2020-10-08) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.2...v0.119.3) ### [`v0.119.2`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01192-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01191v01192-2020-09-23) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.1...v0.119.2) ### [`v0.119.1`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01191-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01190v01191-2020-09-23) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.0...v0.119.1)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 7655311c6f9..f268728e8d1 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.0 + 0.119.3 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index d456719ee00..e10c44aa852 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.0 + 0.119.3 From 496b06aabd74b8daf1e3d255831afc9b11f738ca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 16 Oct 2020 00:46:40 +0200 Subject: [PATCH 033/135] chore(deps): update dependency com.google.cloud:libraries-bom to v12.1.0 (#279) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `12.0.0` -> `12.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 5e63abc0a27..01f7562bab1 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.0.0 + 12.1.0 pom import From 1c57cdc0e653dc5aa367ec4616f30c2a3c987ffc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Oct 2020 01:32:07 +0200 Subject: [PATCH 034/135] test(deps): update dependency junit:junit to v4.13.1 (#272) --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index f268728e8d1..4bdded92d95 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -36,7 +36,7 @@ junit junit - 4.13 + 4.13.1 test diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index e10c44aa852..59fbfa7da87 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -34,7 +34,7 @@ junit junit - 4.13 + 4.13.1 test diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 01f7562bab1..a83fcc233f5 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -47,7 +47,7 @@ junit junit - 4.13 + 4.13.1 test From 9bff7dcdacaee5cffe60207fed9f0e0b4c4f6c79 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 00:51:10 +0200 Subject: [PATCH 035/135] chore(deps): update dependency com.google.cloud:libraries-bom to v13 (#290) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `12.1.0` -> `13.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index a83fcc233f5..637acdea53e 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.1.0 + 13.0.0 pom import From 4c984fd49c7fc3591a95a6c173d788bd0efdc735 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 20:30:08 +0200 Subject: [PATCH 036/135] chore(deps): update dependency com.google.cloud:libraries-bom to v13.1.0 (#295) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.0.0` -> `13.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 637acdea53e..0a1604a10bb 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.0.0 + 13.1.0 pom import From bd53e92d735a90d2172d1ebc3de6d243f906580d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Oct 2020 21:36:53 +0200 Subject: [PATCH 037/135] test(deps): update dependency com.google.truth:truth to v1.1 (#291) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.truth:truth](com/google/truth/truth) | minor | `1.0.1` -> `1.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 4bdded92d95..c19cf392ca9 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -42,7 +42,7 @@ com.google.truth truth - 1.0.1 + 1.1 test diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 59fbfa7da87..a6ca6e6cc91 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.truth truth - 1.0.1 + 1.1 test diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 0a1604a10bb..015428c36ac 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.0.1 + 1.1 test From 170e8dbcd33509a46be6f672a73339363f47d7fe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Oct 2020 21:40:57 +0200 Subject: [PATCH 038/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.4 (#297) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | patch | `0.119.3` -> `0.119.4` | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.4`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01194-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01193v01194-2020-10-22) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.3...v0.119.4)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index c19cf392ca9..d3c328f4818 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.3 + 0.119.4 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index a6ca6e6cc91..a3225a755f4 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.3 + 0.119.4 From a528056920c5c45e5b49b68290f15feb212b8320 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Oct 2020 19:58:05 +0200 Subject: [PATCH 039/135] chore(deps): update dependency com.google.cloud:libraries-bom to v13.2.0 (#301) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.1.0` -> `13.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 015428c36ac..146f148b5dd 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.1.0 + 13.2.0 pom import From cbbc8617393d30a280919cb622d72692097ac201 Mon Sep 17 00:00:00 2001 From: Ajit Thakor <49403056+athakor@users.noreply.github.com> Date: Sat, 31 Oct 2020 04:36:22 +0530 Subject: [PATCH 040/135] samples: fix checkstyle violations (#285) --- .../datalabeling/CreateAnnotationSpecSet.java | 14 ++--- .../example/datalabeling/CreateDataset.java | 14 ++--- .../datalabeling/CreateInstruction.java | 40 ++++++------ .../com/example/datalabeling/ExportData.java | 36 +++++------ .../com/example/datalabeling/ImportData.java | 35 +++++------ .../com/example/datalabeling/LabelImage.java | 17 ++--- .../com/example/datalabeling/LabelText.java | 17 ++--- .../com/example/datalabeling/LabelVideo.java | 63 ++++++++++--------- .../CreateAnnotationSpecSetIT.java | 17 +++-- .../example/datalabeling/CreateDatasetIT.java | 17 ++--- .../datalabeling/CreateInstructionIT.java | 20 +++--- .../example/datalabeling/ImportDataIT.java | 22 +++---- .../example/datalabeling/LabelImageIT.java | 33 +++++----- 13 files changed, 163 insertions(+), 182 deletions(-) diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java index 1564fdf509c..4d9a3823212 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateAnnotationSpecSet.java @@ -47,14 +47,14 @@ static void createAnnotationSpecSet(String projectId) throws IOException { } // [START datalabeling_create_annotation_spec_set_beta] - DataLabelingServiceSettings settings = DataLabelingServiceSettings - .newBuilder() - // [END datalabeling_create_annotation_spec_set_beta] - .setEndpoint(endpoint) - // [START datalabeling_create_annotation_spec_set_beta] - .build(); + DataLabelingServiceSettings settings = + DataLabelingServiceSettings.newBuilder() + // [END datalabeling_create_annotation_spec_set_beta] + .setEndpoint(endpoint) + // [START datalabeling_create_annotation_spec_set_beta] + .build(); try (DataLabelingServiceClient dataLabelingServiceClient = - DataLabelingServiceClient.create(settings)) { + DataLabelingServiceClient.create(settings)) { ProjectName projectName = ProjectName.of(projectId); List annotationSpecs = new ArrayList<>(); diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java index b3c13bc5ec8..9f4fa8dfec8 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateDataset.java @@ -38,14 +38,14 @@ static void createDataset(String projectId, String datasetName) throws IOExcepti } // [START datalabeling_create_dataset_beta] - DataLabelingServiceSettings settings = DataLabelingServiceSettings - .newBuilder() - // [END datalabeling_create_dataset_beta] - .setEndpoint(endpoint) - // [START datalabeling_create_dataset_beta] - .build(); + DataLabelingServiceSettings settings = + DataLabelingServiceSettings.newBuilder() + // [END datalabeling_create_dataset_beta] + .setEndpoint(endpoint) + // [START datalabeling_create_dataset_beta] + .build(); try (DataLabelingServiceClient dataLabelingServiceClient = - DataLabelingServiceClient.create(settings)) { + DataLabelingServiceClient.create(settings)) { ProjectName projectName = ProjectName.of(projectId); Dataset dataset = diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java index ac06bd3786d..7562189993b 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/CreateInstruction.java @@ -43,32 +43,32 @@ static void createInstruction(String projectId, String pdfUri) throws IOExceptio } // [START datalabeling_create_instruction_beta] - DataLabelingServiceSettings settings = DataLabelingServiceSettings - .newBuilder() - // [END datalabeling_create_instruction_beta] - .setEndpoint(endpoint) - // [START datalabeling_create_instruction_beta] - .build(); + DataLabelingServiceSettings settings = + DataLabelingServiceSettings.newBuilder() + // [END datalabeling_create_instruction_beta] + .setEndpoint(endpoint) + // [START datalabeling_create_instruction_beta] + .build(); try (DataLabelingServiceClient dataLabelingServiceClient = - DataLabelingServiceClient.create(settings)) { + DataLabelingServiceClient.create(settings)) { ProjectName projectName = ProjectName.of(projectId); // There are two types of instructions: CSV (CsvInstruction) or PDF (PdfInstruction) - PdfInstruction pdfInstruction = PdfInstruction.newBuilder() - .setGcsFileUri(pdfUri) - .build(); + PdfInstruction pdfInstruction = PdfInstruction.newBuilder().setGcsFileUri(pdfUri).build(); - Instruction instruction = Instruction.newBuilder() - .setDisplayName("YOUR_INSTRUCTION_DISPLAY_NAME") - .setDescription("YOUR_DESCRIPTION") - .setDataType(DataType.IMAGE) // DataTypes: AUDIO, IMAGE, VIDEO, TEXT - .setPdfInstruction(pdfInstruction) // .setCsvInstruction() or .setPdfInstruction() - .build(); + Instruction instruction = + Instruction.newBuilder() + .setDisplayName("YOUR_INSTRUCTION_DISPLAY_NAME") + .setDescription("YOUR_DESCRIPTION") + .setDataType(DataType.IMAGE) // DataTypes: AUDIO, IMAGE, VIDEO, TEXT + .setPdfInstruction(pdfInstruction) // .setCsvInstruction() or .setPdfInstruction() + .build(); - CreateInstructionRequest createInstructionRequest = CreateInstructionRequest.newBuilder() - .setInstruction(instruction) - .setParent(projectName.toString()) - .build(); + CreateInstructionRequest createInstructionRequest = + CreateInstructionRequest.newBuilder() + .setInstruction(instruction) + .setParent(projectName.toString()) + .build(); OperationFuture operation = dataLabelingServiceClient.createInstructionAsync(createInstructionRequest); diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java index d38c5c71617..235fc635b6a 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/ExportData.java @@ -51,28 +51,26 @@ static void exportData(String datasetName, String annotatedDatasetName, String g } // [START datalabeling_export_data_beta] - DataLabelingServiceSettings settings = DataLabelingServiceSettings - .newBuilder() - // [END datalabeling_export_data_beta] - .setEndpoint(endpoint) - // [START datalabeling_export_data_beta] - .build(); + DataLabelingServiceSettings settings = + DataLabelingServiceSettings.newBuilder() + // [END datalabeling_export_data_beta] + .setEndpoint(endpoint) + // [START datalabeling_export_data_beta] + .build(); try (DataLabelingServiceClient dataLabelingServiceClient = - DataLabelingServiceClient.create(settings)) { - GcsDestination gcsDestination = GcsDestination.newBuilder() - .setOutputUri(gcsOutputUri) - .setMimeType("text/csv") - .build(); + DataLabelingServiceClient.create(settings)) { + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUri(gcsOutputUri).setMimeType("text/csv").build(); - OutputConfig outputConfig = OutputConfig.newBuilder() - .setGcsDestination(gcsDestination) - .build(); + OutputConfig outputConfig = + OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); - ExportDataRequest exportDataRequest = ExportDataRequest.newBuilder() - .setName(datasetName) - .setOutputConfig(outputConfig) - .setAnnotatedDataset(annotatedDatasetName) - .build(); + ExportDataRequest exportDataRequest = + ExportDataRequest.newBuilder() + .setName(datasetName) + .setOutputConfig(outputConfig) + .setAnnotatedDataset(annotatedDatasetName) + .build(); OperationFuture operation = dataLabelingServiceClient.exportDataAsync(exportDataRequest); diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java index ec1b36fbe9e..e9d861e0db5 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/ImportData.java @@ -44,28 +44,25 @@ static void importData(String datasetName, String gcsSourceUri) throws IOExcepti } // [START datalabeling_import_data_beta] - DataLabelingServiceSettings settings = DataLabelingServiceSettings - .newBuilder() - // [END datalabeling_import_data_beta] - .setEndpoint(endpoint) - // [START datalabeling_import_data_beta] - .build(); + DataLabelingServiceSettings settings = + DataLabelingServiceSettings.newBuilder() + // [END datalabeling_import_data_beta] + .setEndpoint(endpoint) + // [START datalabeling_import_data_beta] + .build(); try (DataLabelingServiceClient dataLabelingServiceClient = - DataLabelingServiceClient.create(settings)) { - GcsSource gcsSource = GcsSource.newBuilder() - .setInputUri(gcsSourceUri) - .setMimeType("text/csv") - .build(); + DataLabelingServiceClient.create(settings)) { + GcsSource gcsSource = + GcsSource.newBuilder().setInputUri(gcsSourceUri).setMimeType("text/csv").build(); - InputConfig inputConfig = InputConfig.newBuilder() - .setDataType(DataType.IMAGE) // DataTypes: AUDIO, IMAGE, VIDEO, TEXT - .setGcsSource(gcsSource) - .build(); + InputConfig inputConfig = + InputConfig.newBuilder() + .setDataType(DataType.IMAGE) // DataTypes: AUDIO, IMAGE, VIDEO, TEXT + .setGcsSource(gcsSource) + .build(); - ImportDataRequest importDataRequest = ImportDataRequest.newBuilder() - .setName(datasetName) - .setInputConfig(inputConfig) - .build(); + ImportDataRequest importDataRequest = + ImportDataRequest.newBuilder().setName(datasetName).setInputConfig(inputConfig).build(); OperationFuture operation = dataLabelingServiceClient.importDataAsync(importDataRequest); diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java index e00c9805162..1e4f1a8b200 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelImage.java @@ -36,7 +36,8 @@ class LabelImage { static void labelImage( String formattedInstructionName, String formattedAnnotationSpecSetName, - String formattedDatasetName) throws IOException { + String formattedDatasetName) + throws IOException { // String formattedInstructionName = DataLabelingServiceClient.formatInstructionName( // "YOUR_PROJECT_ID", "YOUR_INSTRUCTION_UUID"); // String formattedAnnotationSpecSetName = @@ -52,14 +53,14 @@ static void labelImage( } // [START datalabeling_label_image_beta] - DataLabelingServiceSettings settings = DataLabelingServiceSettings - .newBuilder() - // [END datalabeling_label_image_beta] - .setEndpoint(endpoint) - // [START datalabeling_label_image_beta] - .build(); + DataLabelingServiceSettings settings = + DataLabelingServiceSettings.newBuilder() + // [END datalabeling_label_image_beta] + .setEndpoint(endpoint) + // [START datalabeling_label_image_beta] + .build(); try (DataLabelingServiceClient dataLabelingServiceClient = - DataLabelingServiceClient.create(settings)) { + DataLabelingServiceClient.create(settings)) { HumanAnnotationConfig humanAnnotationConfig = HumanAnnotationConfig.newBuilder() .setAnnotatedDatasetDisplayName("annotated_displayname") diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java index 2ebcfee575e..92ded226126 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelText.java @@ -36,7 +36,8 @@ class LabelText { static void labelText( String formattedInstructionName, String formattedAnnotationSpecSetName, - String formattedDatasetName) throws IOException { + String formattedDatasetName) + throws IOException { // String formattedInstructionName = DataLabelingServiceClient.formatInstructionName( // "YOUR_PROJECT_ID", "YOUR_INSTRUCTION_UUID"); // String formattedAnnotationSpecSetName = @@ -52,14 +53,14 @@ static void labelText( } // [START datalabeling_label_text_beta] - DataLabelingServiceSettings settings = DataLabelingServiceSettings - .newBuilder() - // [END datalabeling_label_text_beta] - .setEndpoint(endpoint) - // [START datalabeling_label_text_beta] - .build(); + DataLabelingServiceSettings settings = + DataLabelingServiceSettings.newBuilder() + // [END datalabeling_label_text_beta] + .setEndpoint(endpoint) + // [START datalabeling_label_text_beta] + .build(); try (DataLabelingServiceClient dataLabelingServiceClient = - DataLabelingServiceClient.create(settings)) { + DataLabelingServiceClient.create(settings)) { HumanAnnotationConfig humanAnnotationConfig = HumanAnnotationConfig.newBuilder() .setAnnotatedDatasetDisplayName("annotated_displayname") diff --git a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java index a84b0bf1ed2..6dc71080a6d 100644 --- a/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java +++ b/datalabeling/snippets/src/main/java/com/example/datalabeling/LabelVideo.java @@ -33,8 +33,11 @@ class LabelVideo { // Start a Video Labeling Task - static void labelVideo(String formattedInstructionName, String formattedAnnotationSpecSetName, - String formattedDatasetName) throws IOException { + static void labelVideo( + String formattedInstructionName, + String formattedAnnotationSpecSetName, + String formattedDatasetName) + throws IOException { // String formattedInstructionName = DataLabelingServiceClient.formatInstructionName( // "YOUR_PROJECT_ID", "YOUR_INSTRUCTION_UUID"); // String formattedAnnotationSpecSetName = @@ -50,36 +53,40 @@ static void labelVideo(String formattedInstructionName, String formattedAnnotati } // [START datalabeling_label_video_beta] - DataLabelingServiceSettings settings = DataLabelingServiceSettings - .newBuilder() - // [END datalabeling_label_video_beta] - .setEndpoint(endpoint) - // [START datalabeling_label_video_beta] - .build(); + DataLabelingServiceSettings settings = + DataLabelingServiceSettings.newBuilder() + // [END datalabeling_label_video_beta] + .setEndpoint(endpoint) + // [START datalabeling_label_video_beta] + .build(); try (DataLabelingServiceClient dataLabelingServiceClient = - DataLabelingServiceClient.create(settings)) { - HumanAnnotationConfig humanAnnotationConfig = HumanAnnotationConfig.newBuilder() - .setAnnotatedDatasetDisplayName("annotated_displayname") - .setAnnotatedDatasetDescription("annotated_description") - .setInstruction(formattedInstructionName) - .build(); + DataLabelingServiceClient.create(settings)) { + HumanAnnotationConfig humanAnnotationConfig = + HumanAnnotationConfig.newBuilder() + .setAnnotatedDatasetDisplayName("annotated_displayname") + .setAnnotatedDatasetDescription("annotated_description") + .setInstruction(formattedInstructionName) + .build(); - AnnotationSpecSetConfig annotationSpecSetConfig = AnnotationSpecSetConfig.newBuilder() - .setAnnotationSpecSet(formattedAnnotationSpecSetName) - .setAllowMultiLabel(true) - .build(); + AnnotationSpecSetConfig annotationSpecSetConfig = + AnnotationSpecSetConfig.newBuilder() + .setAnnotationSpecSet(formattedAnnotationSpecSetName) + .setAllowMultiLabel(true) + .build(); - VideoClassificationConfig videoClassificationConfig = VideoClassificationConfig.newBuilder() - .setApplyShotDetection(true) - .addAnnotationSpecSetConfigs(annotationSpecSetConfig) - .build(); + VideoClassificationConfig videoClassificationConfig = + VideoClassificationConfig.newBuilder() + .setApplyShotDetection(true) + .addAnnotationSpecSetConfigs(annotationSpecSetConfig) + .build(); - LabelVideoRequest labelVideoRequest = LabelVideoRequest.newBuilder() - .setParent(formattedDatasetName) - .setBasicConfig(humanAnnotationConfig) - .setVideoClassificationConfig(videoClassificationConfig) - .setFeature(Feature.CLASSIFICATION) - .build(); + LabelVideoRequest labelVideoRequest = + LabelVideoRequest.newBuilder() + .setParent(formattedDatasetName) + .setBasicConfig(humanAnnotationConfig) + .setVideoClassificationConfig(videoClassificationConfig) + .setFeature(Feature.CLASSIFICATION) + .build(); OperationFuture operation = dataLabelingServiceClient.labelVideoAsync(labelVideoRequest); diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java index a5f9288682a..90ffb73fb13 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateAnnotationSpecSetIT.java @@ -34,9 +34,7 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** - * Integration (system) tests for {@link CreateAnnotationSpecSet}. - */ +/** Integration (system) tests for {@link CreateAnnotationSpecSet}. */ @RunWith(JUnit4.class) @Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") @@ -60,12 +58,11 @@ public void tearDown() { // Delete the Annotation Spec Sheet try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName projectName = ProjectName.of(PROJECT_ID); - ListAnnotationSpecSetsRequest listRequest = ListAnnotationSpecSetsRequest.newBuilder() - .setParent(projectName.toString()) - .build(); + ListAnnotationSpecSetsRequest listRequest = + ListAnnotationSpecSetsRequest.newBuilder().setParent(projectName.toString()).build(); - ListAnnotationSpecSetsPagedResponse response = dataLabelingServiceClient - .listAnnotationSpecSets(listRequest); + ListAnnotationSpecSetsPagedResponse response = + dataLabelingServiceClient.listAnnotationSpecSets(listRequest); for (AnnotationSpecSet annotationSpecSet : response.getPage().iterateAll()) { if (annotationSpecSet.getDisplayName().equals("YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME")) { @@ -83,8 +80,8 @@ public void testCreateAnnotationSpecSet() throws IOException { String output = bout.toString(); - assertThat(output, CoreMatchers.containsString( - "DisplayName: YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME")); + assertThat( + output, CoreMatchers.containsString("DisplayName: YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME")); assertThat(output, CoreMatchers.containsString("Description: YOUR_DESCRIPTION")); assertThat(output, CoreMatchers.containsString("Annotation Count: 2")); } diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java index ce4c845170e..eaeb6102b0d 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateDatasetIT.java @@ -34,9 +34,7 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** - * Integration (system) tests for {@link CreateDataset}. - */ +/** Integration (system) tests for {@link CreateDataset}. */ @RunWith(JUnit4.class) @Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") @@ -61,12 +59,10 @@ public void tearDown() { // Delete the Dataset try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName projectName = ProjectName.of(PROJECT_ID); - ListDatasetsRequest listRequest = ListDatasetsRequest.newBuilder() - .setParent(projectName.toString()) - .build(); + ListDatasetsRequest listRequest = + ListDatasetsRequest.newBuilder().setParent(projectName.toString()).build(); - ListDatasetsPagedResponse response = dataLabelingServiceClient - .listDatasets(listRequest); + ListDatasetsPagedResponse response = dataLabelingServiceClient.listDatasets(listRequest); for (Dataset dataset : response.getPage().iterateAll()) { if (dataset.getDisplayName().equals(datasetName)) { @@ -80,12 +76,11 @@ public void tearDown() { @Test public void testCreateDataset() throws IOException { - CreateDataset.createDataset(PROJECT_ID,datasetName); + CreateDataset.createDataset(PROJECT_ID, datasetName); String output = bout.toString(); - assertThat(output, CoreMatchers.containsString( - "DisplayName: CREATE_DATASET_NAME")); + assertThat(output, CoreMatchers.containsString("DisplayName: CREATE_DATASET_NAME")); assertThat(output, CoreMatchers.containsString("Description: YOUR_DESCRIPTION")); } } diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java index 6ebdb898fdb..420a0796f41 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/CreateInstructionIT.java @@ -34,9 +34,7 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** - * Integration (system) tests for {@link CreateInstruction}. - */ +/** Integration (system) tests for {@link CreateInstruction}. */ @RunWith(JUnit4.class) @Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") @@ -62,12 +60,11 @@ public void tearDown() { // Delete the Instruction try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName projectName = ProjectName.of(PROJECT_ID); - ListInstructionsRequest listRequest = ListInstructionsRequest.newBuilder() - .setParent(projectName.toString()) - .build(); + ListInstructionsRequest listRequest = + ListInstructionsRequest.newBuilder().setParent(projectName.toString()).build(); - ListInstructionsPagedResponse response = dataLabelingServiceClient - .listInstructions(listRequest); + ListInstructionsPagedResponse response = + dataLabelingServiceClient.listInstructions(listRequest); for (Instruction instruction : response.getPage().iterateAll()) { if (instruction.getDisplayName().equals("YOUR_INSTRUCTION_DISPLAY_NAME")) { @@ -85,10 +82,9 @@ public void testCreateInstruction() throws IOException { String output = bout.toString(); - assertThat(output, CoreMatchers.containsString( - "DisplayName: YOUR_INSTRUCTION_DISPLAY_NAME")); + assertThat(output, CoreMatchers.containsString("DisplayName: YOUR_INSTRUCTION_DISPLAY_NAME")); assertThat(output, CoreMatchers.containsString("Description: YOUR_DESCRIPTION")); - assertThat(output, CoreMatchers.containsString( - String.format("GCS SOURCE URI: %s", GCS_SOURCE_URI))); + assertThat( + output, CoreMatchers.containsString(String.format("GCS SOURCE URI: %s", GCS_SOURCE_URI))); } } diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java index eb7bd787e92..4852d6c94a7 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/ImportDataIT.java @@ -34,9 +34,7 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** - * Integration (system) tests for {@link ImportData}. - */ +/** Integration (system) tests for {@link ImportData}. */ @RunWith(JUnit4.class) @Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") @@ -56,17 +54,15 @@ public void setUp() throws IOException { bout = new ByteArrayOutputStream(); System.setOut(new PrintStream(bout)); - CreateDataset.createDataset(PROJECT_ID,datasetName); + CreateDataset.createDataset(PROJECT_ID, datasetName); // Get the Dataset try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName projectName = ProjectName.of(PROJECT_ID); - ListDatasetsRequest listRequest = ListDatasetsRequest.newBuilder() - .setParent(projectName.toString()) - .build(); + ListDatasetsRequest listRequest = + ListDatasetsRequest.newBuilder().setParent(projectName.toString()).build(); - ListDatasetsPagedResponse response = dataLabelingServiceClient - .listDatasets(listRequest); + ListDatasetsPagedResponse response = dataLabelingServiceClient.listDatasets(listRequest); for (Dataset returnedDataset : response.getPage().iterateAll()) { if (returnedDataset.getDisplayName().equals("IMPORT_DATASET_NAME")) { @@ -86,12 +82,10 @@ public void tearDown() { // Delete the Dataset try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName projectName = ProjectName.of(PROJECT_ID); - ListDatasetsRequest listRequest = ListDatasetsRequest.newBuilder() - .setParent(projectName.toString()) - .build(); + ListDatasetsRequest listRequest = + ListDatasetsRequest.newBuilder().setParent(projectName.toString()).build(); - ListDatasetsPagedResponse response = dataLabelingServiceClient - .listDatasets(listRequest); + ListDatasetsPagedResponse response = dataLabelingServiceClient.listDatasets(listRequest); for (Dataset returnedDataset : response.getPage().iterateAll()) { if (returnedDataset.getDisplayName().equals("IMPORT_DATASET_NAME")) { diff --git a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java index 79e1ef79e67..eac1c2087f3 100644 --- a/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java +++ b/datalabeling/snippets/src/test/java/com/example/datalabeling/LabelImageIT.java @@ -37,9 +37,7 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** - * Integration (system) tests for {@link LabelImage}. - */ +/** Integration (system) tests for {@link LabelImage}. */ @RunWith(JUnit4.class) @Ignore("b/146064330") @SuppressWarnings("checkstyle:abbreviationaswordinname") @@ -62,15 +60,14 @@ public void setUp() { try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { // Create the dataset - CreateDataset.createDataset(PROJECT_ID,datsetName); + CreateDataset.createDataset(PROJECT_ID, datsetName); ProjectName projectName = ProjectName.of(PROJECT_ID); // Get the Dataset - ListDatasetsRequest datasetsRequest = ListDatasetsRequest.newBuilder() - .setParent(projectName.toString()) - .build(); - ListDatasetsPagedResponse datasetsResponse = dataLabelingServiceClient - .listDatasets(datasetsRequest); + ListDatasetsRequest datasetsRequest = + ListDatasetsRequest.newBuilder().setParent(projectName.toString()).build(); + ListDatasetsPagedResponse datasetsResponse = + dataLabelingServiceClient.listDatasets(datasetsRequest); for (Dataset returnedDataset : datasetsResponse.getPage().iterateAll()) { if (returnedDataset.getDisplayName().equals("LABEL_IMAGE_DATASET_NAME")) { dataset = returnedDataset; @@ -87,11 +84,10 @@ public void setUp() { CreateAnnotationSpecSet.createAnnotationSpecSet(PROJECT_ID); // Get the instruction - ListInstructionsRequest instructionsRequest = ListInstructionsRequest.newBuilder() - .setParent(projectName.toString()) - .build(); - ListInstructionsPagedResponse instructionsResponse = dataLabelingServiceClient - .listInstructions(instructionsRequest); + ListInstructionsRequest instructionsRequest = + ListInstructionsRequest.newBuilder().setParent(projectName.toString()).build(); + ListInstructionsPagedResponse instructionsResponse = + dataLabelingServiceClient.listInstructions(instructionsRequest); for (Instruction returnedInstruction : instructionsResponse.getPage().iterateAll()) { if (returnedInstruction.getDisplayName().equals("YOUR_INSTRUCTION_DISPLAY_NAME")) { instruction = returnedInstruction; @@ -99,11 +95,10 @@ public void setUp() { } // Get the annotation spec set - ListAnnotationSpecSetsRequest annotationRequest = ListAnnotationSpecSetsRequest.newBuilder() - .setParent(projectName.toString()) - .build(); - ListAnnotationSpecSetsPagedResponse annotationsResponse = dataLabelingServiceClient - .listAnnotationSpecSets(annotationRequest); + ListAnnotationSpecSetsRequest annotationRequest = + ListAnnotationSpecSetsRequest.newBuilder().setParent(projectName.toString()).build(); + ListAnnotationSpecSetsPagedResponse annotationsResponse = + dataLabelingServiceClient.listAnnotationSpecSets(annotationRequest); for (AnnotationSpecSet returnedAnnotation : annotationsResponse.getPage().iterateAll()) { if (returnedAnnotation.getDisplayName().equals("YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME")) { annotationSpecSet = returnedAnnotation; From 0879cafe201089dcfc8101318aed0b64eddb0a4c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 00:36:28 +0100 Subject: [PATCH 041/135] chore(deps): update dependency com.google.cloud:libraries-bom to v13.4.0 (#303) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.2.0` -> `13.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 146f148b5dd..e2aa9676a7c 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.2.0 + 13.4.0 pom import From 863677aaab0d886b020612589c54c917213e9fc6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 2 Nov 2020 19:18:13 +0100 Subject: [PATCH 042/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.5 (#312) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | patch | `0.119.4` -> `0.119.5` | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.5`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01195-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01194v01195-2020-10-31) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.4...v0.119.5)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index d3c328f4818..7abfb03f17f 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.4 + 0.119.5 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index a3225a755f4..b25f1eee169 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.4 + 0.119.5 From a38938168c9237d9ef448e670777115543b7ce6e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 4 Nov 2020 01:28:09 +0100 Subject: [PATCH 043/135] chore(deps): update dependency com.google.cloud:libraries-bom to v14 (#315) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `13.4.0` -> `14.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index e2aa9676a7c..c7d9e3e03a6 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.4.0 + 14.4.1 pom import From 236ce957a0065f9c3949cb38ab4ad1d7fa30065f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 11 Nov 2020 01:38:07 +0100 Subject: [PATCH 044/135] chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#318) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `14.4.1` -> `15.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index c7d9e3e03a6..6c716374fa3 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 14.4.1 + 15.0.0 pom import From 131cf3b1686a142dbc0cd3dc8775bc15935dd671 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 18 Nov 2020 20:03:45 +0100 Subject: [PATCH 045/135] chore(deps): update dependency com.google.cloud:libraries-bom to v16 (#334) --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 6c716374fa3..7699fa3cc70 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 15.0.0 + 16.0.0 pom import From a4a272a8864dd74fbc930371b2d46cb801a2efe6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:00:16 +0100 Subject: [PATCH 046/135] chore(deps): update dependency com.google.cloud:libraries-bom to v16.1.0 (#336) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.0.0` -> `16.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 7699fa3cc70..e7ef44884a6 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.0.0 + 16.1.0 pom import From 2595900327663d843200e875e06dc2a78de168a1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:38:28 +0100 Subject: [PATCH 047/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.6 (#325) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | patch | `0.119.5` -> `0.119.6` | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.6`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01196-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01195v01196-2020-11-11) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.5...v0.119.6)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 7abfb03f17f..8a7da6673e8 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.5 + 0.119.6 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index b25f1eee169..b352568e6dd 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.5 + 0.119.6 From 96a93b1a7f61074d7117c575f8d0f0bb72f03569 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Dec 2020 20:54:19 +0100 Subject: [PATCH 048/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.7 (#347) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | patch | `0.119.6` -> `0.119.7` | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.7`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01197-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01196v01197-2020-12-08) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.6...v0.119.7)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 8a7da6673e8..1b60aa7f505 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.6 + 0.119.7 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index b352568e6dd..e9917f1ce48 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.6 + 0.119.7 From 4686c030534bb33f2941776543d3b486a2b9ffed Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Dec 2020 23:32:39 +0100 Subject: [PATCH 049/135] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.0 (#360) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.1.0` -> `16.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index e7ef44884a6..6c5c936b708 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.1.0 + 16.2.0 pom import From 6752c38ddc2e1ee4fcd1a330536db372b4a94a3d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Jan 2021 22:28:31 +0100 Subject: [PATCH 050/135] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.1 (#366) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `16.2.0` -> `16.2.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 6c5c936b708..af314a534b8 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.0 + 16.2.1 pom import From d1e136da8c942248dcbb34e15dfc195ddd85a7ca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Jan 2021 23:16:35 +0100 Subject: [PATCH 051/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.9 (#365) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | patch | `0.119.7` -> `0.119.9` | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.9`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01199-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01198v01199-2020-12-15) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.7...v0.119.9)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 1b60aa7f505..25218594d58 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.7 + 0.119.9 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index e9917f1ce48..d07e73167b0 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.7 + 0.119.9 From 908b46e6814def86c98205efb7cbe30897eaf9d1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 20 Jan 2021 21:18:50 +0100 Subject: [PATCH 052/135] chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#376) --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index af314a534b8..9f7960c32c9 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.1 + 16.3.0 pom import From df8e0010ef48850514206756dc4845590b3285ab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 18:30:34 +0100 Subject: [PATCH 053/135] test(deps): update dependency com.google.truth:truth to v1.1.2 (#378) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.truth:truth](com/google/truth/truth) | `1.1` -> `1.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/compatibility-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/confidence-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 25218594d58..62b58444a63 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -42,7 +42,7 @@ com.google.truth truth - 1.1 + 1.1.2 test diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index d07e73167b0..bb570112efe 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.truth truth - 1.1 + 1.1.2 test diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 9f7960c32c9..c1a66a66780 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.1 + 1.1.2 test From 6924db5b88599d2d7c10e24a72395a8f851bac92 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Feb 2021 17:06:32 +0100 Subject: [PATCH 054/135] chore(deps): update dependency com.google.cloud:libraries-bom to v16.4.0 (#395) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.3.0` -> `16.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/compatibility-slim/16.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/confidence-slim/16.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index c1a66a66780..25caabf69c0 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import From cd5a8b365b9e21cdea47552daba04206787056a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Feb 2021 19:06:27 +0100 Subject: [PATCH 055/135] test(deps): update dependency junit:junit to v4.13.2 (#398) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [![age](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/compatibility-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/confidence-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 62b58444a63..fbdebb1ff75 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -36,7 +36,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index bb570112efe..1cd8658a080 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -34,7 +34,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 25caabf69c0..c292c9cc8b4 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -47,7 +47,7 @@ junit junit - 4.13.1 + 4.13.2 test From 68ed2e85f4f902f9e8749a22c14ed398b502e2e9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:36:34 +0100 Subject: [PATCH 056/135] chore(deps): update dependency com.google.cloud:libraries-bom to v17 (#407) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.4.0` -> `17.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/compatibility-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/confidence-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index c292c9cc8b4..9a4e9329544 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.4.0 + 17.0.0 pom import From 36a576c46628fdbc0b92232db5a8321d32d8a914 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:50:12 +0100 Subject: [PATCH 057/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.11 (#389) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.119.9` -> `0.119.11` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.11/compatibility-slim/0.119.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.11/confidence-slim/0.119.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.11`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​011911-httpswwwgithubcomgoogleapisjava-datalabelingcomparev011910v011911-2021-02-22) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.10...v0.119.11) ### [`v0.119.10`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​011910-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01199v011910-2021-01-14) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.9...v0.119.10)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index fbdebb1ff75..03b7d584245 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.9 + 0.119.11 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 1cd8658a080..fbc5702771b 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.9 + 0.119.11 From e0bb6e855a3f8ae726970a311356a10cac231b1c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 01:12:08 +0100 Subject: [PATCH 058/135] chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#410) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/compatibility-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/confidence-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 9a4e9329544..e0fbd48b13f 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import From 2d5ff37b084e2e5861d6c57f01591d3db56f02ea Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Feb 2021 02:18:11 +0100 Subject: [PATCH 059/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.12 (#416) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.119.11` -> `0.119.12` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.12/compatibility-slim/0.119.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.12/confidence-slim/0.119.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 03b7d584245..14351a25e9c 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.11 + 0.119.12 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index fbc5702771b..c3d04522bbc 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.11 + 0.119.12 From bc0fc4f33e67ad1d7a9c72ffc2cdf79a47559e39 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Mar 2021 20:36:46 +0100 Subject: [PATCH 060/135] chore(deps): update dependency com.google.cloud:libraries-bom to v18.1.0 (#419) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.0.0` -> `18.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/compatibility-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/confidence-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index e0fbd48b13f..535652c86e7 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.0.0 + 18.1.0 pom import From fc8f3705ae84e7fce52aa1f7eac3cef2fb02e4e6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:36:28 +0100 Subject: [PATCH 061/135] chore(deps): update dependency com.google.cloud:libraries-bom to v19 (#423) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.1.0` -> `19.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/compatibility-slim/18.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/confidence-slim/18.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 535652c86e7..777944db05b 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.1.0 + 19.0.0 pom import From f55ad23207af1df0bdd92af4e780649f2eb41f14 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Mar 2021 05:02:06 +0100 Subject: [PATCH 062/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.13 (#431) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.119.12` -> `0.119.13` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.13/compatibility-slim/0.119.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.13/confidence-slim/0.119.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.13`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​011913-httpswwwgithubcomgoogleapisjava-datalabelingcomparev011912v011913-2021-03-11) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.12...v0.119.13)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 14351a25e9c..55a3d69d010 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.12 + 0.119.13 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index c3d04522bbc..3fea2de3599 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.12 + 0.119.13 From a6043c7622981533ddfcd8f1cb61c962a62ac805 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Mar 2021 21:10:08 +0100 Subject: [PATCH 063/135] chore(deps): update dependency com.google.cloud:libraries-bom to v19.1.0 (#434) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.0.0` -> `19.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/compatibility-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/confidence-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 777944db05b..9464f22aa38 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.0.0 + 19.1.0 pom import From 6d20959fdeb1c2f40a9b0f8db6e20c79bfb2b54e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 29 Mar 2021 15:56:12 +0200 Subject: [PATCH 064/135] chore(deps): update dependency com.google.cloud:libraries-bom to v19.2.1 (#436) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.1.0` -> `19.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/compatibility-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/confidence-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 9464f22aa38..a3ae3606cf7 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.1.0 + 19.2.1 pom import From 209188c408175eecee3a41509e14339130ad2315 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 21:22:13 +0200 Subject: [PATCH 065/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.22 (#442) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.21` -> `1.0.22` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/compatibility-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/confidence-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 55a3d69d010..88d451e6ca4 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 3ea8759aacc..cc822c1fcb5 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 3fea2de3599..f15edd1af75 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index a3ae3606cf7..20a6d5adc0b 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 From 4de489df6a8a79b8fc780de9aa5083e224353054 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 18:04:43 +0200 Subject: [PATCH 066/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20 (#451) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.2.1` -> `20.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/compatibility-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/confidence-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 20a6d5adc0b..1341d345c9a 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.2.1 + 20.0.0 pom import From d19ba3568a7b90ba8f240a6b742855a8c12849b5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Apr 2021 16:44:25 +0200 Subject: [PATCH 067/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20.1.0 (#457) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.0.0` -> `20.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/compatibility-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/confidence-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 1341d345c9a..2151526e74e 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.0.0 + 20.1.0 pom import From e681d3994f8fa1e562835e3ebf8c37451a7f389a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Apr 2021 17:38:28 +0200 Subject: [PATCH 068/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20.2.0 (#467) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.1.0` -> `20.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/compatibility-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/confidence-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 2151526e74e..46b5c8d7f72 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.1.0 + 20.2.0 pom import From 098237beb68073335eb11c21d90104b39f78e6ee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Apr 2021 20:14:39 +0200 Subject: [PATCH 069/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.15 (#450) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.119.13` -> `0.119.15` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.15/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.15/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.15/compatibility-slim/0.119.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.15/confidence-slim/0.119.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.15`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​011915-httpswwwgithubcomgoogleapisjava-datalabelingcomparev011914v011915-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.14...v0.119.15) ### [`v0.119.14`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​011914-httpswwwgithubcomgoogleapisjava-datalabelingcomparev011913v011914-2021-04-09) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.13...v0.119.14)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 88d451e6ca4..1bc4b914c8f 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.13 + 0.119.15 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index f15edd1af75..8bbeb5c9e4f 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.13 + 0.119.15 From 7cb58fdc7374ca728a3be80d022c40f2ec6ea476 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 13 May 2021 15:56:23 +0200 Subject: [PATCH 070/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20.3.0 (#476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.2.0` -> `20.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/compatibility-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/confidence-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 46b5c8d7f72..70edc1b6142 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.2.0 + 20.3.0 pom import From f869b827156120eee0cef0be86fb20f239a2bd12 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 May 2021 03:46:26 +0200 Subject: [PATCH 071/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20.4.0 (#484) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.3.0` -> `20.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/compatibility-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/confidence-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 70edc1b6142..56457d21dd7 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.3.0 + 20.4.0 pom import From 61ccdcfb2c96e71068b26408f7fca3611a536e2b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 22:58:21 +0200 Subject: [PATCH 072/135] test(deps): update dependency com.google.truth:truth to v1.1.3 (#494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.truth:truth | `1.1.2` -> `1.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/compatibility-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/confidence-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 1bc4b914c8f..1d58cdf910b 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -42,7 +42,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 8bbeb5c9e4f..b43594ff658 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 56457d21dd7..0f8c9c2e3ef 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test From 0bc8f53b965aac98ddeb4543ca24b18722ae3dfe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 23:40:22 +0200 Subject: [PATCH 073/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.119.16 (#483) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.119.15` -> `0.119.16` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.16/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.16/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.16/compatibility-slim/0.119.15)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.119.16/confidence-slim/0.119.15)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.119.16`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​011916-httpswwwgithubcomgoogleapisjava-datalabelingcomparev011915v011916-2021-05-14) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.15...v0.119.16)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 1d58cdf910b..0df2003f758 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.15 + 0.119.16 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index b43594ff658..04eefd65060 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.15 + 0.119.16 From d202e710c442b4fb1be67587f8474d78dedfc381 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 31 May 2021 20:02:32 +0200 Subject: [PATCH 074/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20.5.0 (#493) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.4.0` -> `20.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/compatibility-slim/20.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/confidence-slim/20.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 0f8c9c2e3ef..0ff473d4c1f 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import From 2e8502bf8abe0a85008bf57061e8876fe4e96eb4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Jun 2021 22:10:36 +0200 Subject: [PATCH 075/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.120.0 (#499) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.119.16` -> `0.120.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.120.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.120.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.120.0/compatibility-slim/0.119.16)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.120.0/confidence-slim/0.119.16)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.120.0`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01200-httpswwwgithubcomgoogleapisjava-datalabelingcomparev011916v01200-2021-05-31) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.119.16...v0.120.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​488](https://www.github.com/googleapis/java-datalabeling/issues/488)) ([a344e20](https://www.github.com/googleapis/java-datalabeling/commit/a344e20a4d556620f961e0cc11c39b65166ac713)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#​487](https://www.github.com/googleapis/java-datalabeling/issues/487)) ([560ce47](https://www.github.com/googleapis/java-datalabeling/commit/560ce47c22be70e17fb671b3920241445c08c5b8)) ##### [0.119.16](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.15...v0.119.16) (2021-05-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#​477](https://www.github.com/googleapis/java-datalabeling/issues/477)) ([23575b3](https://www.github.com/googleapis/java-datalabeling/commit/23575b32c06d23688985dbb5074d06877df47050)) ##### [0.119.15](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.14...v0.119.15) (2021-04-23) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​456](https://www.github.com/googleapis/java-datalabeling/issues/456)) ([51006aa](https://www.github.com/googleapis/java-datalabeling/commit/51006aa7c725f1a4cbdcdd37766177f1a2b0345f)) - typo ([#​453](https://www.github.com/googleapis/java-datalabeling/issues/453)) ([6036d50](https://www.github.com/googleapis/java-datalabeling/commit/6036d50030261371200ef1f39928c37d315c99ff)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#​460](https://www.github.com/googleapis/java-datalabeling/issues/460)) ([fc3a8ee](https://www.github.com/googleapis/java-datalabeling/commit/fc3a8ee98a87ff20c90a26240032bb43cbff8c9d)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#​463](https://www.github.com/googleapis/java-datalabeling/issues/463)) ([9ba7a76](https://www.github.com/googleapis/java-datalabeling/commit/9ba7a768bb0ed03afc48e6c5c3e83bf2e9b536d1)) ##### [0.119.14](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.13...v0.119.14) (2021-04-09) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#​443](https://www.github.com/googleapis/java-datalabeling/issues/443)) ([8add437](https://www.github.com/googleapis/java-datalabeling/commit/8add4374c23da6eac4e5945944e65afe39f6e876)) ##### [0.119.13](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.12...v0.119.13) (2021-03-11) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#​427](https://www.github.com/googleapis/java-datalabeling/issues/427)) ([1174bad](https://www.github.com/googleapis/java-datalabeling/commit/1174bad425e2e36951f173d24e8aff2dc20ec959)) ##### [0.119.12](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.11...v0.119.12) (2021-02-25) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#​413](https://www.github.com/googleapis/java-datalabeling/issues/413)) ([11a26c2](https://www.github.com/googleapis/java-datalabeling/commit/11a26c214ab0a42166d9ffb5fd916a8228cd6088)) ##### [0.119.11](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.10...v0.119.11) (2021-02-22) ##### Documentation - generate sample code in the Java microgenerator ([#​392](https://www.github.com/googleapis/java-datalabeling/issues/392)) ([e92f3e7](https://www.github.com/googleapis/java-datalabeling/commit/e92f3e7be7337fba186061d1fd944bd7380799a6)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#​404](https://www.github.com/googleapis/java-datalabeling/issues/404)) ([aba9d1c](https://www.github.com/googleapis/java-datalabeling/commit/aba9d1c737f66434bcbda9d8daad699d76d10cc4)) ##### [0.119.10](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.9...v0.119.10) (2021-01-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#​372](https://www.github.com/googleapis/java-datalabeling/issues/372)) ([ac514b5](https://www.github.com/googleapis/java-datalabeling/commit/ac514b55c5117bb7311b9ddfe2f1e9edf688ffd5)) ##### [0.119.9](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.8...v0.119.9) (2020-12-15) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#​358](https://www.github.com/googleapis/java-datalabeling/issues/358)) ([7836993](https://www.github.com/googleapis/java-datalabeling/commit/7836993b5f6cc1825a7ac0375d14a1883ee6b756)) ##### [0.119.8](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.7...v0.119.8) (2020-12-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#​353](https://www.github.com/googleapis/java-datalabeling/issues/353)) ([b106306](https://www.github.com/googleapis/java-datalabeling/commit/b1063061be4aa8829b1084d29f530933e879f714)) ##### [0.119.7](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.6...v0.119.7) (2020-12-08) ##### Documentation - Provide a descriptive comment for DataLabelingService ([#​326](https://www.github.com/googleapis/java-datalabeling/issues/326)) ([52f4868](https://www.github.com/googleapis/java-datalabeling/commit/52f4868a978f36a572ba58b625235f4ebfda7b99)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#​343](https://www.github.com/googleapis/java-datalabeling/issues/343)) ([188e80e](https://www.github.com/googleapis/java-datalabeling/commit/188e80e21da7424436c43dabfd2765f7f6e44a9b)) ##### [0.119.6](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.5...v0.119.6) (2020-11-11) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#​321](https://www.github.com/googleapis/java-datalabeling/issues/321)) ([f82dcd3](https://www.github.com/googleapis/java-datalabeling/commit/f82dcd38d8a53a27d877c765834cfe326666dc2a)) ##### [0.119.5](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.4...v0.119.5) (2020-10-31) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#​308](https://www.github.com/googleapis/java-datalabeling/issues/308)) ([eac2276](https://www.github.com/googleapis/java-datalabeling/commit/eac2276ced820ccaeb39a67deb38788e999a4bc5)) ##### [0.119.4](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.3...v0.119.4) (2020-10-22) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#​287](https://www.github.com/googleapis/java-datalabeling/issues/287)) ([098b079](https://www.github.com/googleapis/java-datalabeling/commit/098b0795ca200623aad88ca8704b3545a5614ea8)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#​292](https://www.github.com/googleapis/java-datalabeling/issues/292)) ([0847cc9](https://www.github.com/googleapis/java-datalabeling/commit/0847cc9ab5091c836f7c73abc80a6d7dd41fb4f3)) ##### [0.119.3](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.2...v0.119.3) (2020-10-08) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#​266](https://www.github.com/googleapis/java-datalabeling/issues/266)) ([99d08a6](https://www.github.com/googleapis/java-datalabeling/commit/99d08a66ac28f4430110e3e5ee37012288a7f142)) ##### [0.119.2](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.1...v0.119.2) (2020-09-23) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#​252](https://www.github.com/googleapis/java-datalabeling/issues/252)) ([eed2553](https://www.github.com/googleapis/java-datalabeling/commit/eed2553f9e08613d762be54ab0feab85db06f057)) ##### [0.119.1](https://www.github.com/googleapis/java-datalabeling/compare/v0.119.0...v0.119.1) (2020-09-23) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#​232](https://www.github.com/googleapis/java-datalabeling/issues/232)) ([9bf90f1](https://www.github.com/googleapis/java-datalabeling/commit/9bf90f1f83655d492dcf5a853a34cdfe1599a8e2))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 0df2003f758..935be8517bc 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.16 + 0.120.0 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 04eefd65060..3e1580e159f 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.119.16 + 0.120.0 From 695b819e713c2323a6c17d3789c00555c9b53b50 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 16:53:08 +0200 Subject: [PATCH 076/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#506) --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 935be8517bc..9e7ab32d2d3 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index cc822c1fcb5..93be45aac9c 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 3e1580e159f..4abdcb1d8d6 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 0ff473d4c1f..11466938b1a 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From f2350853a80f19a6bcd568b3a784bb0fded28f6e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 21:00:10 +0200 Subject: [PATCH 077/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20.6.0 (#507) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 11466938b1a..080af05a522 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import From a4c387d17585390fa32a16d91584d400a64d2b01 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Jun 2021 20:54:31 +0200 Subject: [PATCH 078/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.120.1 (#505) --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 9e7ab32d2d3..d6efb58191e 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.120.0 + 0.120.1 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 4abdcb1d8d6..d858edcc8a8 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.120.0 + 0.120.1 From af7eeb20efbd498c2b30550172046c699eb3c857 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Jun 2021 21:10:30 +0200 Subject: [PATCH 079/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20.7.0 (#518) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.6.0` -> `20.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/compatibility-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/confidence-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 080af05a522..f5396e55ed3 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From 53712d000b65d2fd9672643279e82ed99b3ab00d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 7 Jul 2021 19:08:16 +0200 Subject: [PATCH 080/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.120.2 (#526) --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index d6efb58191e..c0aa6826266 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.120.1 + 0.120.2 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index d858edcc8a8..cc5238e3475 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.120.1 + 0.120.2 From 593538b987100dad3b25fef0552b219c9e0b7d83 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Jul 2021 16:38:37 +0200 Subject: [PATCH 081/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20.8.0 (#531) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.7.0` -> `20.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/compatibility-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/confidence-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index f5396e55ed3..2a5f04a63be 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import From 6d0b143b2fdb4a38c1da849653fc4a2a617875f6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Jul 2021 02:54:39 +0200 Subject: [PATCH 082/135] chore(deps): update dependency com.google.cloud:libraries-bom to v20.9.0 (#540) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.8.0` -> `20.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/compatibility-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/confidence-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 2a5f04a63be..e5a6e219531 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import From 9ecde444638e885d7776342222c3f48a3647541c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 20:00:15 +0200 Subject: [PATCH 083/135] chore(deps): update dependency com.google.cloud:libraries-bom to v21 (#576) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.9.0` -> `21.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/compatibility-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/confidence-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index e5a6e219531..d11568d734d 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import From 61b04d7297514c433059148dd40ab07152a82195 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 23:19:42 +0200 Subject: [PATCH 084/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.121.0 (#571) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.121.0 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Emily Ball --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index c0aa6826266..07241f35575 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.120.2 + 0.121.0 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index cc5238e3475..1fc1d2a039c 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.120.2 + 0.121.0 From 690cdefe2e9b066a19379b11e636448e2a5f1054 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 27 Aug 2021 18:14:23 +0200 Subject: [PATCH 085/135] chore(deps): update dependency com.google.cloud:libraries-bom to v22 (#587) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `21.0.0` -> `22.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/compatibility-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/confidence-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index d11568d734d..d2240ac64e1 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import From c6ba60071876cbc38332bcaf400ac55ee987a7ee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 00:00:35 +0200 Subject: [PATCH 086/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.121.1 (#580) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.121.0` -> `0.121.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.121.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.121.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.121.1/compatibility-slim/0.121.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.121.1/confidence-slim/0.121.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.121.1`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01211-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01210v01211-2021-08-12) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.121.0...v0.121.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 07241f35575..bba2699c5b2 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.121.0 + 0.121.1 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 1fc1d2a039c..caadd6b9048 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.121.0 + 0.121.1 From 7bd2fa32c1649c43e4df9339ab82fe161b0cb00f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 00:12:39 +0200 Subject: [PATCH 087/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.121.2 (#591) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.121.1` -> `0.121.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.121.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.121.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.121.2/compatibility-slim/0.121.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.121.2/confidence-slim/0.121.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.121.2`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01212-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01211v01212-2021-08-23) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.121.1...v0.121.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index bba2699c5b2..1f96d35931a 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.121.1 + 0.121.2 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index caadd6b9048..ebe993b29b7 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.121.1 + 0.121.2 From 721b5e11fbc96a629a3ef1d5dfc6497ce9e49115 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 2 Sep 2021 17:59:06 +0200 Subject: [PATCH 088/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.0 (#594) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.121.2` -> `0.122.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.0/compatibility-slim/0.121.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.0/confidence-slim/0.121.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.122.0`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01220-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01212v01220-2021-09-01) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.121.2...v0.122.0) ##### Features - Remove use of deprecated gradle command in java README ([#​1196](https://www.togithub.com/googleapis/java-datalabeling/issues/1196)) ([#​588](https://www.togithub.com/googleapis/java-datalabeling/issues/588)) ([1e11758](https://www.github.com/googleapis/java-datalabeling/commit/1e117581d2b8773eb0e91db632a9ba9e5220b82e)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#​590](https://www.togithub.com/googleapis/java-datalabeling/issues/590)) ([c0ada08](https://www.github.com/googleapis/java-datalabeling/commit/c0ada084c083c2f0dfd8b0b67f45323a8f215ea3)) ##### [0.121.2](https://www.github.com/googleapis/java-datalabeling/compare/v0.121.1...v0.121.2) (2021-08-23) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#​581](https://www.togithub.com/googleapis/java-datalabeling/issues/581)) ([e664221](https://www.github.com/googleapis/java-datalabeling/commit/e6642214225f31de1a46e964f2948fff0717bdb8)) ##### [0.121.1](https://www.github.com/googleapis/java-datalabeling/compare/v0.121.0...v0.121.1) (2021-08-12) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#​572](https://www.togithub.com/googleapis/java-datalabeling/issues/572)) ([d6855ae](https://www.github.com/googleapis/java-datalabeling/commit/d6855ae33c6282d510fd5acb5b78f6eb3072e60d))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 1f96d35931a..8f6fe2fe379 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.121.2 + 0.122.0 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index ebe993b29b7..ff08c64caf9 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.121.2 + 0.122.0 From b6061576f40d49784bf46c266fc4b59baa1ee016 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Sep 2021 20:33:21 +0200 Subject: [PATCH 089/135] chore(deps): update dependency com.google.cloud:libraries-bom to v23 (#598) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `22.0.0` -> `23.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/compatibility-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/confidence-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index d2240ac64e1..c2bcc074829 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import From ea9841da826217fc71ce5d1178b50a4b58910dd8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 19:20:25 +0200 Subject: [PATCH 090/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.1 (#608) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.1 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 8f6fe2fe379..2dc4ac7f692 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.0 + 0.122.1 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index ff08c64caf9..8c0f9e50954 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.0 + 0.122.1 From 8ca487e88e378209c7b44b9ecc4e73d2cccd79b2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Sep 2021 02:23:14 +0200 Subject: [PATCH 091/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.2 (#614) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.2 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 2dc4ac7f692..6b5cfc2c003 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.1 + 0.122.2 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 8c0f9e50954..08e84edaffb 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.1 + 0.122.2 From 4b280ab5ec7bc6977291e82f00b66fd936245737 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 16:18:31 +0200 Subject: [PATCH 092/135] chore(deps): update dependency com.google.cloud:libraries-bom to v23.1.0 (#620) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.0.0` -> `23.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/compatibility-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/confidence-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index c2bcc074829..ff36eddb93e 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import From 3a3a615b0bd8dc114f4ad7cf082c751a1a3b9ce0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Oct 2021 19:06:43 +0200 Subject: [PATCH 093/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.3 (#629) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.122.2` -> `0.122.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.3/compatibility-slim/0.122.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.3/confidence-slim/0.122.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.122.3`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01223-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01222v01223-2021-10-19) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.122.2...v0.122.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 6b5cfc2c003..78b25c6827b 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.2 + 0.122.3 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 08e84edaffb..f6da523fe70 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.2 + 0.122.3 From ee02eedad0022c0fbd55aaef1f6d050c7f6e68d8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 18:22:50 +0200 Subject: [PATCH 094/135] chore(deps): update dependency com.google.cloud:libraries-bom to v24 (#633) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.1.0` -> `24.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/compatibility-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/confidence-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index ff36eddb93e..ac718e78445 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import From 2348e0c4dde937dbd1beb8904c9792a5554521f0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Dec 2021 23:28:32 +0100 Subject: [PATCH 095/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.4 (#651) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.122.3` -> `0.122.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.4/compatibility-slim/0.122.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.4/confidence-slim/0.122.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.122.4`](https://togithub.com/googleapis/java-datalabeling/blob/master/CHANGELOG.md#​01224-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01223v01224-2021-12-03) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.122.3...v0.122.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 78b25c6827b..1b491dd5913 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.3 + 0.122.4 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index f6da523fe70..4eb008a1224 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.3 + 0.122.4 From 583a713e35b9a83c176df0b95bed65a97cf75cab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:16:25 +0100 Subject: [PATCH 096/135] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#648) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- datalabeling/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 1b491dd5913..5131a1e7cc3 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 93be45aac9c..7cdb0561e5e 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 4eb008a1224..ab6bd46fae4 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index ac718e78445..ad8281a440a 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 From dec7ea70811c92e6c88b37d29a6035452e2d0c60 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Dec 2021 00:06:21 +0100 Subject: [PATCH 097/135] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.0 (#654) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.0.0` -> `24.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/compatibility-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/confidence-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index ad8281a440a..c1288e62cc1 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.0.0 + 24.1.0 pom import From 185c2e9aabadaba5823fa15fa4ba235d9db64647 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Dec 2021 22:02:23 +0100 Subject: [PATCH 098/135] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.1 (#655) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.0` -> `24.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/compatibility-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/confidence-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index c1288e62cc1..a6252ff6c95 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import From f9ac0f24e261a4d98d31dde632095e6094ed09d4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 16:52:21 +0100 Subject: [PATCH 099/135] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.2 (#661) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.1` -> `24.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/compatibility-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/confidence-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index a6252ff6c95..7bd1f64bb63 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import From 444850e9d462806e2914aa54f395c03204be402d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 Jan 2022 19:18:18 +0100 Subject: [PATCH 100/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.5 (#665) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.122.4` -> `0.122.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.5/compatibility-slim/0.122.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.5/confidence-slim/0.122.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.122.5`](https://togithub.com/googleapis/java-datalabeling/blob/HEAD/CHANGELOG.md#​01225-httpswwwgithubcomgoogleapisjava-datalabelingcomparev01224v01225-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.122.4...v0.122.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 5131a1e7cc3..a5dfcae9b67 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.4 + 0.122.5 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index ab6bd46fae4..a18d31d221c 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.4 + 0.122.5 From f0a73b4af5e4893eb27630f615ff505e1ca92f7d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Jan 2022 20:06:13 +0100 Subject: [PATCH 101/135] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 (#663) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.codehaus.mojo:build-helper-maven-plugin](http://www.mojohaus.org/build-helper-maven-plugin/) ([source](https://togithub.com/mojohaus/build-helper-maven-plugin)) | `3.2.0` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/compatibility-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/confidence-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index a5dfcae9b67..199fdf77662 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -53,7 +53,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index a18d31d221c..0742d9940cb 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -52,7 +52,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source From 8fc650ed5a1e82fea335b5d42be1631c41fa7795 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Jan 2022 20:06:36 +0100 Subject: [PATCH 102/135] chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 (#670) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.2` -> `24.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/compatibility-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/confidence-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 7bd1f64bb63..d15c81eeecd 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import From ad3c7646443632fa025b8ea45318f6dc4d5005ad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Feb 2022 00:29:03 +0100 Subject: [PATCH 103/135] chore(deps): update dependency com.google.cloud:libraries-bom to v24.3.0 (#686) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index d15c81eeecd..3140f05dea4 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import From a716cc7a4ca7721c9296b0d6a360209d31446143 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Feb 2022 21:15:43 +0100 Subject: [PATCH 104/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.6 (#681) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.6 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 199fdf77662..a46cc0da353 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.5 + 0.122.6 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 0742d9940cb..6d482cd703a 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.5 + 0.122.6 From 54f0d5c91519fac183c60a9191f69d703ff68ec8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Feb 2022 22:46:58 +0100 Subject: [PATCH 105/135] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.9 (#691) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.8` -> `1.6.9` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/compatibility-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/confidence-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 7cdb0561e5e..5a3cbf142d1 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.8 + 1.6.9 true From bcafc94d7671810cc897da76d6b47bff3cedc39f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 17:48:45 +0100 Subject: [PATCH 106/135] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.10 (#694) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.9` -> `1.6.10` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/compatibility-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/confidence-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.10`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 5a3cbf142d1..8ce2f37d111 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.9 + 1.6.10 true From 98816cd83b88d00a094aec9ba20ebc040a29aace Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 19:42:39 +0100 Subject: [PATCH 107/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.7 (#692) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.122.6` -> `0.122.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.7/compatibility-slim/0.122.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.7/confidence-slim/0.122.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.122.7`](https://togithub.com/googleapis/java-datalabeling/blob/HEAD/CHANGELOG.md#​01227-httpsgithubcomgoogleapisjava-datalabelingcomparev01226v01227-2022-02-11) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.122.6...v0.122.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index a46cc0da353..c2793b25b9a 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.6 + 0.122.7 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 6d482cd703a..66640d6849e 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.6 + 0.122.7 From 090bc486d8731709be3de761ad2c7296be0148b5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 17 Feb 2022 16:41:05 +0100 Subject: [PATCH 108/135] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.11 (#695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.10` -> `1.6.11` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/compatibility-slim/1.6.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/confidence-slim/1.6.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.11`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.10...release-1.6.11) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.10...release-1.6.11)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index 8ce2f37d111..ccf8da197b7 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.10 + 1.6.11 true From be50a71a6aece8e2042bdfb166c35085ebcb3132 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 18:50:23 +0100 Subject: [PATCH 109/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.8 (#702) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.122.7` -> `0.122.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.8/compatibility-slim/0.122.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.8/confidence-slim/0.122.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.122.8`](https://togithub.com/googleapis/java-datalabeling/blob/HEAD/CHANGELOG.md#​01228-httpsgithubcomgoogleapisjava-datalabelingcomparev01227v01228-2022-03-01) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.122.7...v0.122.8)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index c2793b25b9a..13adbac9734 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.7 + 0.122.8 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 66640d6849e..16d82d950db 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.7 + 0.122.8 From 28ef55c5a0b895628a5ae2a0e9e7ab3e2e6b788d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 20:06:37 +0100 Subject: [PATCH 110/135] chore(deps): update dependency com.google.cloud:libraries-bom to v24.4.0 (#706) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.3.0` -> `24.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/compatibility-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/confidence-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 3140f05dea4..35a7204608c 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import From f5b74737f29f5c1a689671c68ca24a9b86de7f91 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 21:41:09 +0100 Subject: [PATCH 111/135] chore(deps): update dependency com.google.cloud:libraries-bom to v25 (#715) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v25 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 35a7204608c..b6262211313 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import From 6b70bc6e3d687bec456341b517b76451465bc040 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 21:52:17 +0100 Subject: [PATCH 112/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.9 (#714) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.122.8` -> `0.122.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.9/compatibility-slim/0.122.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.9/confidence-slim/0.122.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.122.9`](https://togithub.com/googleapis/java-datalabeling/blob/HEAD/CHANGELOG.md#​01229-httpsgithubcomgoogleapisjava-datalabelingcomparev01228v01229-2022-03-02) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.122.8...v0.122.9)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 13adbac9734..04666465f5f 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.8 + 0.122.9 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 16d82d950db..603e673d694 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.8 + 0.122.9 From 6ccb54359a6baac31a614a955865a0acd0695ba9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:36:22 +0200 Subject: [PATCH 113/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.10 (#723) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.122.9` -> `0.122.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.10/compatibility-slim/0.122.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.10/confidence-slim/0.122.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.122.10`](https://togithub.com/googleapis/java-datalabeling/blob/HEAD/CHANGELOG.md#​012210-httpsgithubcomgoogleapisjava-datalabelingcomparev01229v012210-2022-03-29) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.122.9...v0.122.10)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 04666465f5f..268249f9213 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.9 + 0.122.10 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 603e673d694..7df44829837 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.9 + 0.122.10 From 5f9c04222e58723e18932f50251236bbe0ffe6f2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:42:20 +0200 Subject: [PATCH 114/135] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#724) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index b6262211313..0cf0de99663 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From 6595c68050ff8abb2e5c3ada25178aeafcd6264d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 19:44:25 +0200 Subject: [PATCH 115/135] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.13 (#733) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.11` -> `1.6.13` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/compatibility-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/confidence-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.13`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) ### [`v1.6.12`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index ccf8da197b7..ba4cf4a82d3 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.11 + 1.6.13 true From b0bf077226f56b801a2e5dc84cedcdfd249047be Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 21:40:24 +0200 Subject: [PATCH 116/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.122.11 (#730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.122.10` -> `0.122.11` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.11/compatibility-slim/0.122.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.122.11/confidence-slim/0.122.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-datalabeling ### [`v0.122.11`](https://togithub.com/googleapis/java-datalabeling/blob/HEAD/CHANGELOG.md#​012211-httpsgithubcomgoogleapisjava-datalabelingcomparev012210v012211-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-datalabeling/compare/v0.122.10...v0.122.11)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 268249f9213..b66418bef80 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.10 + 0.122.11 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 7df44829837..1e7cc7a358c 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.10 + 0.122.11 From 1e68fc503302d45db3edccd18b8d7300ed354f5b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 17:32:16 +0200 Subject: [PATCH 117/135] chore(deps): update dependency com.google.cloud:libraries-bom to v25.2.0 (#735) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.1.0` -> `25.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/compatibility-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/confidence-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 0cf0de99663..0fa27dc10de 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import From f0e22d24394209aba7db106bb80a4486ef25149b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 16 May 2022 19:42:27 +0200 Subject: [PATCH 118/135] chore(deps): update dependency com.google.cloud:libraries-bom to v25.3.0 (#739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.2.0` -> `25.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/compatibility-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/confidence-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 0fa27dc10de..d22a19d6286 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import From a7b08cdbee27215d72688400591ff7de0881f25c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 00:26:17 +0200 Subject: [PATCH 119/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.123.0 (#745) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.122.11` -> `0.123.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.0/compatibility-slim/0.122.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.0/confidence-slim/0.122.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index b66418bef80..bda437ea35d 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.11 + 0.123.0 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 1e7cc7a358c..184d46c78a0 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.122.11 + 0.123.0 From 6dd09eb5d6522c717439455bcb71940fc2feff02 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:08:31 +0200 Subject: [PATCH 120/135] chore(deps): update dependency com.google.cloud:libraries-bom to v25.4.0 (#746) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.3.0` -> `25.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/compatibility-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/confidence-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index d22a19d6286..1596787baf9 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import From 7656493848a092b86116d6d9a66e46f12d54ae8b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 24 Jun 2022 16:56:16 +0200 Subject: [PATCH 121/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.123.1 (#753) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.123.0` -> `0.123.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.1/compatibility-slim/0.123.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.1/confidence-slim/0.123.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index bda437ea35d..fe270de7e70 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.0 + 0.123.1 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 184d46c78a0..828d44b2d9e 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.0 + 0.123.1 From 3476dbb93a0d9b9736a4f63f5df0d2b05dffdd35 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 20:49:43 +0200 Subject: [PATCH 122/135] chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#760) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 1596787baf9..7f039213763 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import From b3af47216c91472f758457ca119aeb114d9fea75 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Jul 2022 19:20:12 +0200 Subject: [PATCH 123/135] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3 (#766) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) | `2.8.2` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml index ba4cf4a82d3..bbfae0c05c5 100644 --- a/datalabeling/pom.xml +++ b/datalabeling/pom.xml @@ -38,7 +38,7 @@ org.apache.maven.plugins maven-deploy-plugin - 2.8.2 + 3.0.0 true From d8068f5ac8a3cdd3179cb51c2a8b99d6a154080d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 18:10:40 +0200 Subject: [PATCH 124/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.123.3 (#773) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.123.1` -> `0.123.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.3/compatibility-slim/0.123.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.3/confidence-slim/0.123.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index fe270de7e70..d2c2ffe11f9 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.1 + 0.123.3 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 828d44b2d9e..622fe8641f2 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.1 + 0.123.3 From f4923fb8fc57a9e34fd1e25cf2cfe5bfec0aca41 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 18:48:21 +0200 Subject: [PATCH 125/135] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.0 (#774) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 7f039213763..c8d88a1639a 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import From 919c3c65231382876ab8e491393e79f109e23bcc Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Aug 2022 14:36:20 +0000 Subject: [PATCH 126/135] chore: remove unused proto imports (#777) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 468735472 Source-Link: https://github.com/googleapis/googleapis/commit/cfa1b3782da7ccae31673d45401a0b79d2d4a84b Source-Link: https://github.com/googleapis/googleapis-gen/commit/09b7666656510f5b00b893f003a0ba5766f9e250 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDliNzY2NjY1NjUxMGY1YjAwYjg5M2YwMDNhMGJhNTc2NmY5ZTI1MCJ9 --- .../SyncCreateSetCredentialsProvider.java | 42 +++++++++++++ .../create/SyncCreateSetEndpoint.java | 39 ++++++++++++ .../AsyncCreateAnnotationSpecSet.java | 48 ++++++++++++++ .../SyncCreateAnnotationSpecSet.java | 44 +++++++++++++ ...onSpecSetProjectnameAnnotationspecset.java | 41 ++++++++++++ ...otationSpecSetStringAnnotationspecset.java | 41 ++++++++++++ .../createdataset/AsyncCreateDataset.java | 48 ++++++++++++++ .../createdataset/SyncCreateDataset.java | 44 +++++++++++++ .../SyncCreateDatasetProjectnameDataset.java | 40 ++++++++++++ .../SyncCreateDatasetStringDataset.java | 40 ++++++++++++ .../AsyncCreateEvaluationJob.java | 48 ++++++++++++++ .../SyncCreateEvaluationJob.java | 44 +++++++++++++ ...EvaluationJobProjectnameEvaluationjob.java | 40 ++++++++++++ ...reateEvaluationJobStringEvaluationjob.java | 40 ++++++++++++ .../AsyncCreateInstruction.java | 49 +++++++++++++++ .../AsyncCreateInstructionLRO.java | 49 +++++++++++++++ .../SyncCreateInstruction.java | 44 +++++++++++++ ...eateInstructionProjectnameInstruction.java | 41 ++++++++++++ ...yncCreateInstructionStringInstruction.java | 41 ++++++++++++ .../AsyncDeleteAnnotatedDataset.java | 49 +++++++++++++++ .../SyncDeleteAnnotatedDataset.java | 45 ++++++++++++++ .../AsyncDeleteAnnotationSpecSet.java | 47 ++++++++++++++ .../SyncDeleteAnnotationSpecSet.java | 43 +++++++++++++ ...nnotationSpecSetAnnotationspecsetname.java | 39 ++++++++++++ .../SyncDeleteAnnotationSpecSetString.java | 39 ++++++++++++ .../deletedataset/AsyncDeleteDataset.java | 47 ++++++++++++++ .../deletedataset/SyncDeleteDataset.java | 43 +++++++++++++ .../SyncDeleteDatasetDatasetname.java | 39 ++++++++++++ .../SyncDeleteDatasetString.java | 39 ++++++++++++ .../AsyncDeleteEvaluationJob.java | 47 ++++++++++++++ .../SyncDeleteEvaluationJob.java | 43 +++++++++++++ ...cDeleteEvaluationJobEvaluationjobname.java | 39 ++++++++++++ .../SyncDeleteEvaluationJobString.java | 39 ++++++++++++ .../AsyncDeleteInstruction.java | 47 ++++++++++++++ .../SyncDeleteInstruction.java | 43 +++++++++++++ .../SyncDeleteInstructionInstructionname.java | 39 ++++++++++++ .../SyncDeleteInstructionString.java | 39 ++++++++++++ .../exportdata/AsyncExportData.java | 55 ++++++++++++++++ .../exportdata/AsyncExportDataLRO.java | 56 +++++++++++++++++ .../exportdata/SyncExportData.java | 52 ++++++++++++++++ ...nnotateddatasetnameStringOutputconfig.java | 49 +++++++++++++++ ...taDatasetnameStringStringOutputconfig.java | 48 ++++++++++++++ ...nnotateddatasetnameStringOutputconfig.java | 48 ++++++++++++++ ...ortDataStringStringStringOutputconfig.java | 48 ++++++++++++++ .../AsyncGetAnnotatedDataset.java | 49 +++++++++++++++ .../SyncGetAnnotatedDataset.java | 45 ++++++++++++++ ...tAnnotatedDatasetAnnotateddatasetname.java | 40 ++++++++++++ .../SyncGetAnnotatedDatasetString.java | 40 ++++++++++++ .../AsyncGetAnnotationSpecSet.java | 47 ++++++++++++++ .../SyncGetAnnotationSpecSet.java | 43 +++++++++++++ ...nnotationSpecSetAnnotationspecsetname.java | 39 ++++++++++++ .../SyncGetAnnotationSpecSetString.java | 39 ++++++++++++ .../getdataitem/AsyncGetDataItem.java | 47 ++++++++++++++ .../getdataitem/SyncGetDataItem.java | 43 +++++++++++++ .../SyncGetDataItemDataitemname.java | 39 ++++++++++++ .../getdataitem/SyncGetDataItemString.java | 39 ++++++++++++ .../getdataset/AsyncGetDataset.java | 47 ++++++++++++++ .../getdataset/SyncGetDataset.java | 43 +++++++++++++ .../getdataset/SyncGetDatasetDatasetname.java | 39 ++++++++++++ .../getdataset/SyncGetDatasetString.java | 39 ++++++++++++ .../getevaluation/AsyncGetEvaluation.java | 47 ++++++++++++++ .../getevaluation/SyncGetEvaluation.java | 43 +++++++++++++ .../SyncGetEvaluationEvaluationname.java | 39 ++++++++++++ .../SyncGetEvaluationString.java | 39 ++++++++++++ .../AsyncGetEvaluationJob.java | 47 ++++++++++++++ .../SyncGetEvaluationJob.java | 43 +++++++++++++ ...SyncGetEvaluationJobEvaluationjobname.java | 39 ++++++++++++ .../SyncGetEvaluationJobString.java | 39 ++++++++++++ .../getexample/AsyncGetExample.java | 50 +++++++++++++++ .../getexample/SyncGetExample.java | 46 ++++++++++++++ .../SyncGetExampleExamplenameString.java | 41 ++++++++++++ .../SyncGetExampleStringString.java | 41 ++++++++++++ .../getinstruction/AsyncGetInstruction.java | 47 ++++++++++++++ .../getinstruction/SyncGetInstruction.java | 43 +++++++++++++ .../SyncGetInstructionInstructionname.java | 39 ++++++++++++ .../SyncGetInstructionString.java | 39 ++++++++++++ .../importdata/AsyncImportData.java | 50 +++++++++++++++ .../importdata/AsyncImportDataLRO.java | 51 +++++++++++++++ .../importdata/SyncImportData.java | 47 ++++++++++++++ .../SyncImportDataDatasetnameInputconfig.java | 42 +++++++++++++ .../SyncImportDataStringInputconfig.java | 42 +++++++++++++ .../labelimage/AsyncLabelImage.java | 49 +++++++++++++++ .../labelimage/AsyncLabelImageLRO.java | 50 +++++++++++++++ .../labelimage/SyncLabelImage.java | 45 ++++++++++++++ ...otationconfigLabelimagerequestfeature.java | 45 ++++++++++++++ ...otationconfigLabelimagerequestfeature.java | 45 ++++++++++++++ .../labeltext/AsyncLabelText.java | 49 +++++++++++++++ .../labeltext/AsyncLabelTextLRO.java | 50 +++++++++++++++ .../labeltext/SyncLabelText.java | 45 ++++++++++++++ ...notationconfigLabeltextrequestfeature.java | 45 ++++++++++++++ ...notationconfigLabeltextrequestfeature.java | 45 ++++++++++++++ .../labelvideo/AsyncLabelVideo.java | 49 +++++++++++++++ .../labelvideo/AsyncLabelVideoLRO.java | 50 +++++++++++++++ .../labelvideo/SyncLabelVideo.java | 45 ++++++++++++++ ...otationconfigLabelvideorequestfeature.java | 45 ++++++++++++++ ...otationconfigLabelvideorequestfeature.java | 45 ++++++++++++++ .../AsyncListAnnotatedDatasets.java | 52 ++++++++++++++++ .../AsyncListAnnotatedDatasetsPaged.java | 60 ++++++++++++++++++ .../SyncListAnnotatedDatasets.java | 49 +++++++++++++++ ...istAnnotatedDatasetsDatasetnameString.java | 43 +++++++++++++ ...SyncListAnnotatedDatasetsStringString.java | 43 +++++++++++++ .../AsyncListAnnotationSpecSets.java | 52 ++++++++++++++++ .../AsyncListAnnotationSpecSetsPaged.java | 60 ++++++++++++++++++ .../SyncListAnnotationSpecSets.java | 49 +++++++++++++++ ...stAnnotationSpecSetsProjectnameString.java | 43 +++++++++++++ ...yncListAnnotationSpecSetsStringString.java | 43 +++++++++++++ .../listdataitems/AsyncListDataItems.java | 52 ++++++++++++++++ .../AsyncListDataItemsPaged.java | 60 ++++++++++++++++++ .../listdataitems/SyncListDataItems.java | 48 ++++++++++++++ .../SyncListDataItemsDatasetnameString.java | 43 +++++++++++++ .../SyncListDataItemsStringString.java | 43 +++++++++++++ .../listdatasets/AsyncListDatasets.java | 52 ++++++++++++++++ .../listdatasets/AsyncListDatasetsPaged.java | 60 ++++++++++++++++++ .../listdatasets/SyncListDatasets.java | 48 ++++++++++++++ .../SyncListDatasetsProjectnameString.java | 42 +++++++++++++ .../SyncListDatasetsStringString.java | 42 +++++++++++++ .../AsyncListEvaluationJobs.java | 52 ++++++++++++++++ .../AsyncListEvaluationJobsPaged.java | 60 ++++++++++++++++++ .../SyncListEvaluationJobs.java | 49 +++++++++++++++ ...ncListEvaluationJobsProjectnameString.java | 43 +++++++++++++ .../SyncListEvaluationJobsStringString.java | 43 +++++++++++++ .../listexamples/AsyncListExamples.java | 54 ++++++++++++++++ .../listexamples/AsyncListExamplesPaged.java | 62 +++++++++++++++++++ .../listexamples/SyncListExamples.java | 50 +++++++++++++++ ...istExamplesAnnotateddatasetnameString.java | 43 +++++++++++++ .../SyncListExamplesStringString.java | 43 +++++++++++++ .../AsyncListInstructions.java | 52 ++++++++++++++++ .../AsyncListInstructionsPaged.java | 60 ++++++++++++++++++ .../SyncListInstructions.java | 48 ++++++++++++++ ...SyncListInstructionsProjectnameString.java | 43 +++++++++++++ .../SyncListInstructionsStringString.java | 43 +++++++++++++ .../AsyncPauseEvaluationJob.java | 47 ++++++++++++++ .../SyncPauseEvaluationJob.java | 43 +++++++++++++ ...ncPauseEvaluationJobEvaluationjobname.java | 39 ++++++++++++ .../SyncPauseEvaluationJobString.java | 39 ++++++++++++ .../AsyncResumeEvaluationJob.java | 47 ++++++++++++++ .../SyncResumeEvaluationJob.java | 43 +++++++++++++ ...cResumeEvaluationJobEvaluationjobname.java | 39 ++++++++++++ .../SyncResumeEvaluationJobString.java | 39 ++++++++++++ .../AsyncSearchEvaluations.java | 52 ++++++++++++++++ .../AsyncSearchEvaluationsPaged.java | 60 ++++++++++++++++++ .../SyncSearchEvaluations.java | 48 ++++++++++++++ ...SearchEvaluationsEvaluationnameString.java | 43 +++++++++++++ .../SyncSearchEvaluationsStringString.java | 43 +++++++++++++ .../AsyncSearchExampleComparisons.java | 51 +++++++++++++++ .../AsyncSearchExampleComparisonsPaged.java | 59 ++++++++++++++++++ .../SyncSearchExampleComparisons.java | 48 ++++++++++++++ ...earchExampleComparisonsEvaluationname.java | 42 +++++++++++++ .../SyncSearchExampleComparisonsString.java | 42 +++++++++++++ .../AsyncUpdateEvaluationJob.java | 48 ++++++++++++++ .../SyncUpdateEvaluationJob.java | 44 +++++++++++++ ...teEvaluationJobEvaluationjobFieldmask.java | 41 ++++++++++++ .../createdataset/SyncCreateDataset.java | 47 ++++++++++++++ .../createdataset/SyncCreateDataset.java | 47 ++++++++++++++ 154 files changed, 7019 insertions(+) create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java create mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000000..c132d83a9c3 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000000..26efcd06336 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + DataLabelingServiceSettings dataLabelingServiceSettings = + DataLabelingServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DataLabelingServiceClient dataLabelingServiceClient = + DataLabelingServiceClient.create(dataLabelingServiceSettings); + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_create_setendpoint_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java new file mode 100644 index 00000000000..05a1680f52d --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java new file mode 100644 index 00000000000..3e49c1b79e5 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java new file mode 100644 index 00000000000..02c035a33cd --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java @@ -0,0 +1,41 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java new file mode 100644 index 00000000000..33f639fabaa --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java @@ -0,0 +1,41 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java new file mode 100644 index 00000000000..888b194eb9b --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java new file mode 100644 index 00000000000..eda0e133bf7 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java new file mode 100644 index 00000000000..383fecda919 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java @@ -0,0 +1,40 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java new file mode 100644 index 00000000000..9689119bfcb --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java @@ -0,0 +1,40 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java new file mode 100644 index 00000000000..3b605def21b --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java new file mode 100644 index 00000000000..a7f0e61b7c4 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java new file mode 100644 index 00000000000..d5e27e6b1b2 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java @@ -0,0 +1,40 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java new file mode 100644 index 00000000000..869a69e95f5 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java @@ -0,0 +1,40 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java new file mode 100644 index 00000000000..a013833f91c --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java new file mode 100644 index 00000000000..360083058c2 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java new file mode 100644 index 00000000000..be9568e0209 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java new file mode 100644 index 00000000000..c0b6665900e --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java @@ -0,0 +1,41 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java new file mode 100644 index 00000000000..eac373dfa48 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java @@ -0,0 +1,41 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java new file mode 100644 index 00000000000..eac1a11bdd2 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java new file mode 100644 index 00000000000..d2d800c91b5 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java new file mode 100644 index 00000000000..9c824dec63e --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java new file mode 100644 index 00000000000..1057a0af092 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java new file mode 100644 index 00000000000..6f4e3ad651c --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java new file mode 100644 index 00000000000..87919c3706e --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java new file mode 100644 index 00000000000..25558da6bc5 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java new file mode 100644 index 00000000000..7c3657f3ef3 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java new file mode 100644 index 00000000000..bcbfe77d889 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java new file mode 100644 index 00000000000..04120bf4768 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java new file mode 100644 index 00000000000..3bacc3bcec1 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java new file mode 100644 index 00000000000..f37da8ada4f --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java new file mode 100644 index 00000000000..3aeb26d9fff --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java new file mode 100644 index 00000000000..d83c7193499 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java new file mode 100644 index 00000000000..d4f16bec16f --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java new file mode 100644 index 00000000000..4a9546d6be1 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java new file mode 100644 index 00000000000..54d4b143b0e --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java new file mode 100644 index 00000000000..bda4045b1ae --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java new file mode 100644 index 00000000000..a59e44f717c --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java new file mode 100644 index 00000000000..fa75aa724f5 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java @@ -0,0 +1,56 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java new file mode 100644 index 00000000000..eaa9aad62b0 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java new file mode 100644 index 00000000000..e5ed8a6478c --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java new file mode 100644 index 00000000000..1baac1ce5df --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java new file mode 100644 index 00000000000..dcf73b89f3b --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java new file mode 100644 index 00000000000..caa2b929073 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java new file mode 100644 index 00000000000..31a8530acd0 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java new file mode 100644 index 00000000000..d5eed55721c --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java new file mode 100644 index 00000000000..704fd7fc597 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java @@ -0,0 +1,40 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java new file mode 100644 index 00000000000..eb9004c34c9 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java @@ -0,0 +1,40 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java new file mode 100644 index 00000000000..8b6ae2c1a11 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java new file mode 100644 index 00000000000..8cafb4899b4 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java new file mode 100644 index 00000000000..e1b5ecca8f2 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java new file mode 100644 index 00000000000..57759e0000e --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java new file mode 100644 index 00000000000..ba3208a0712 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java new file mode 100644 index 00000000000..254306d072f --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java new file mode 100644 index 00000000000..ec4d0881c56 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java new file mode 100644 index 00000000000..0bb6bb11060 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java new file mode 100644 index 00000000000..7665af281f4 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java new file mode 100644 index 00000000000..4a435b7c6c2 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java new file mode 100644 index 00000000000..fcdb843adab --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java new file mode 100644 index 00000000000..6b238a6dc52 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java new file mode 100644 index 00000000000..5b1c4415a29 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java new file mode 100644 index 00000000000..aa6f500f62b --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java new file mode 100644 index 00000000000..36d28563b99 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java new file mode 100644 index 00000000000..ea4dbbbec43 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java new file mode 100644 index 00000000000..0efb957cd47 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java new file mode 100644 index 00000000000..2a91c1acfcd --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java new file mode 100644 index 00000000000..9616509c903 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java new file mode 100644 index 00000000000..731be76bcae --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java new file mode 100644 index 00000000000..afb7a62c48f --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java new file mode 100644 index 00000000000..0887901b8a8 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java new file mode 100644 index 00000000000..3777ba7ca0e --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java @@ -0,0 +1,41 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java new file mode 100644 index 00000000000..afbc9d71a17 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java @@ -0,0 +1,41 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java new file mode 100644 index 00000000000..19c6a4dc297 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java new file mode 100644 index 00000000000..56a03e8aff7 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java new file mode 100644 index 00000000000..2e6cacf112d --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java new file mode 100644 index 00000000000..0559a1e8e78 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java new file mode 100644 index 00000000000..8526beeda50 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java new file mode 100644 index 00000000000..2c000a23dd6 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java new file mode 100644 index 00000000000..367c99aced2 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java new file mode 100644 index 00000000000..3c104980a0f --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java new file mode 100644 index 00000000000..e89887497d5 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java new file mode 100644 index 00000000000..de92c42e21d --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java new file mode 100644 index 00000000000..181c811a6be --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java new file mode 100644 index 00000000000..16edd588b38 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java new file mode 100644 index 00000000000..c5f79ebd9cb --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java new file mode 100644 index 00000000000..090539c21f7 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java new file mode 100644 index 00000000000..4ceccf339b1 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java new file mode 100644 index 00000000000..2f22799a240 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java new file mode 100644 index 00000000000..dab10284bd8 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java new file mode 100644 index 00000000000..c62b578df68 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java new file mode 100644 index 00000000000..060f5cb9851 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java new file mode 100644 index 00000000000..be1f35c27a9 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java new file mode 100644 index 00000000000..741d8166845 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java new file mode 100644 index 00000000000..ff423baa947 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java new file mode 100644 index 00000000000..ae41c7836a3 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java new file mode 100644 index 00000000000..13c4010f8ac --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java new file mode 100644 index 00000000000..7e67e7da484 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java new file mode 100644 index 00000000000..0814f16716e --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java @@ -0,0 +1,60 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java new file mode 100644 index 00000000000..21c515d2386 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java new file mode 100644 index 00000000000..d7825e17ff7 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java new file mode 100644 index 00000000000..1e590017c1d --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java new file mode 100644 index 00000000000..57e428fc44d --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java new file mode 100644 index 00000000000..555061e4bdf --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java @@ -0,0 +1,60 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java new file mode 100644 index 00000000000..f1c851fe5d1 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java new file mode 100644 index 00000000000..73b8c608701 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java new file mode 100644 index 00000000000..0f5f7e1ee66 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java new file mode 100644 index 00000000000..f5282d05a2b --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java new file mode 100644 index 00000000000..62c1fc6bfd1 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java @@ -0,0 +1,60 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java new file mode 100644 index 00000000000..6d2ff0479f4 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java new file mode 100644 index 00000000000..7c0675042c8 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java new file mode 100644 index 00000000000..e4b1aab1b36 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java new file mode 100644 index 00000000000..4a90525503a --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java new file mode 100644 index 00000000000..ca29ff72315 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java @@ -0,0 +1,60 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java new file mode 100644 index 00000000000..1a33989b6cd --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java new file mode 100644 index 00000000000..283ff8cca70 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java new file mode 100644 index 00000000000..5ba3108fe74 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java new file mode 100644 index 00000000000..94b919e121b --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java new file mode 100644 index 00000000000..0d98172e223 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java @@ -0,0 +1,60 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java new file mode 100644 index 00000000000..11de769cba8 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java new file mode 100644 index 00000000000..270c9ced847 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java new file mode 100644 index 00000000000..01b475a4926 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java new file mode 100644 index 00000000000..09e4245f022 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java new file mode 100644 index 00000000000..3e7c0adccd3 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java @@ -0,0 +1,62 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java new file mode 100644 index 00000000000..004588e6fcd --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java new file mode 100644 index 00000000000..19d117a4c0e --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java new file mode 100644 index 00000000000..d8afb8125ad --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java new file mode 100644 index 00000000000..b934c6871a3 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java new file mode 100644 index 00000000000..9dcb89fc7ca --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java @@ -0,0 +1,60 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java new file mode 100644 index 00000000000..246e744ed77 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java new file mode 100644 index 00000000000..c066e6eb5bf --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java new file mode 100644 index 00000000000..1dd619c9225 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java new file mode 100644 index 00000000000..185e44dbd5d --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java new file mode 100644 index 00000000000..fd06ffacfdb --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java new file mode 100644 index 00000000000..8153770710d --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java new file mode 100644 index 00000000000..014120495bb --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java @@ -0,0 +1,39 @@ +/* + * 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 for illustrative purposes only. + // It may require modifications to work in your environment. + 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java new file mode 100644 index 00000000000..c723236ee6a --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.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_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 for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + ResumeEvaluationJobRequest request = + ResumeEvaluationJobRequest.newBuilder() + .setName(EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString()) + .build(); + ApiFuture future = + dataLabelingServiceClient.resumeEvaluationJobCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_resumeevaluationjob_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java new file mode 100644 index 00000000000..5b47c05bb68 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.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_resumeevaluationjob_sync] +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 SyncResumeEvaluationJob { + + public static void main(String[] args) throws Exception { + syncResumeEvaluationJob(); + } + + public static void syncResumeEvaluationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + ResumeEvaluationJobRequest request = + ResumeEvaluationJobRequest.newBuilder() + .setName(EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString()) + .build(); + dataLabelingServiceClient.resumeEvaluationJob(request); + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_resumeevaluationjob_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java new file mode 100644 index 00000000000..e36e4d06de8 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java @@ -0,0 +1,39 @@ +/* + * 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_evaluationjobname_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.EvaluationJobName; +import com.google.protobuf.Empty; + +public class SyncResumeEvaluationJobEvaluationjobname { + + public static void main(String[] args) throws Exception { + syncResumeEvaluationJobEvaluationjobname(); + } + + public static void syncResumeEvaluationJobEvaluationjobname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); + dataLabelingServiceClient.resumeEvaluationJob(name); + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_resumeevaluationjob_evaluationjobname_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java new file mode 100644 index 00000000000..aa231be13dc --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java @@ -0,0 +1,39 @@ +/* + * 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_string_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.EvaluationJobName; +import com.google.protobuf.Empty; + +public class SyncResumeEvaluationJobString { + + public static void main(String[] args) throws Exception { + syncResumeEvaluationJobString(); + } + + public static void syncResumeEvaluationJobString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + String name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString(); + dataLabelingServiceClient.resumeEvaluationJob(name); + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_resumeevaluationjob_string_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java new file mode 100644 index 00000000000..f55aafa1983 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.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_searchevaluations_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.SearchEvaluationsRequest; + +public class AsyncSearchEvaluations { + + public static void main(String[] args) throws Exception { + asyncSearchEvaluations(); + } + + public static void asyncSearchEvaluations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + SearchEvaluationsRequest request = + SearchEvaluationsRequest.newBuilder() + .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataLabelingServiceClient.searchEvaluationsPagedCallable().futureCall(request); + // Do something. + for (Evaluation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java new file mode 100644 index 00000000000..da70f324dbd --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java @@ -0,0 +1,60 @@ +/* + * 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_searchevaluations_paged_async] +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.SearchEvaluationsRequest; +import com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse; +import com.google.common.base.Strings; + +public class AsyncSearchEvaluationsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchEvaluationsPaged(); + } + + public static void asyncSearchEvaluationsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + SearchEvaluationsRequest request = + SearchEvaluationsRequest.newBuilder() + .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchEvaluationsResponse response = + dataLabelingServiceClient.searchEvaluationsCallable().call(request); + for (Evaluation element : response.getEvaluationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_paged_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java new file mode 100644 index 00000000000..72cf95ad01d --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.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_searchevaluations_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.SearchEvaluationsRequest; + +public class SyncSearchEvaluations { + + public static void main(String[] args) throws Exception { + syncSearchEvaluations(); + } + + public static void syncSearchEvaluations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + SearchEvaluationsRequest request = + SearchEvaluationsRequest.newBuilder() + .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Evaluation element : dataLabelingServiceClient.searchEvaluations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java new file mode 100644 index 00000000000..609bd503f5f --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.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_searchevaluations_evaluationnamestring_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.Evaluation; +import com.google.cloud.datalabeling.v1beta1.EvaluationName; + +public class SyncSearchEvaluationsEvaluationnameString { + + public static void main(String[] args) throws Exception { + syncSearchEvaluationsEvaluationnameString(); + } + + public static void syncSearchEvaluationsEvaluationnameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); + String filter = "filter-1274492040"; + for (Evaluation element : + dataLabelingServiceClient.searchEvaluations(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_evaluationnamestring_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java new file mode 100644 index 00000000000..ae9b381fcf7 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.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_searchevaluations_stringstring_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.Evaluation; +import com.google.cloud.datalabeling.v1beta1.EvaluationName; + +public class SyncSearchEvaluationsStringString { + + public static void main(String[] args) throws Exception { + syncSearchEvaluationsStringString(); + } + + public static void syncSearchEvaluationsStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + String parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); + String filter = "filter-1274492040"; + for (Evaluation element : + dataLabelingServiceClient.searchEvaluations(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_stringstring_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java new file mode 100644 index 00000000000..954bf79e177 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.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_searchexamplecomparisons_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.EvaluationName; +import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest; +import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; + +public class AsyncSearchExampleComparisons { + + public static void main(String[] args) throws Exception { + asyncSearchExampleComparisons(); + } + + public static void asyncSearchExampleComparisons() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + SearchExampleComparisonsRequest request = + SearchExampleComparisonsRequest.newBuilder() + .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataLabelingServiceClient.searchExampleComparisonsPagedCallable().futureCall(request); + // Do something. + for (SearchExampleComparisonsResponse.ExampleComparison element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java new file mode 100644 index 00000000000..cf353b32690 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.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_searchexamplecomparisons_paged_async] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.EvaluationName; +import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest; +import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; +import com.google.common.base.Strings; + +public class AsyncSearchExampleComparisonsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchExampleComparisonsPaged(); + } + + public static void asyncSearchExampleComparisonsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + SearchExampleComparisonsRequest request = + SearchExampleComparisonsRequest.newBuilder() + .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchExampleComparisonsResponse response = + dataLabelingServiceClient.searchExampleComparisonsCallable().call(request); + for (SearchExampleComparisonsResponse.ExampleComparison element : + response.getExampleComparisonsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_paged_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java new file mode 100644 index 00000000000..dc123ebfc1a --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.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_searchexamplecomparisons_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.EvaluationName; +import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest; +import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; + +public class SyncSearchExampleComparisons { + + public static void main(String[] args) throws Exception { + syncSearchExampleComparisons(); + } + + public static void syncSearchExampleComparisons() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + SearchExampleComparisonsRequest request = + SearchExampleComparisonsRequest.newBuilder() + .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SearchExampleComparisonsResponse.ExampleComparison element : + dataLabelingServiceClient.searchExampleComparisons(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java new file mode 100644 index 00000000000..3113fab5d41 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.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_searchexamplecomparisons_evaluationname_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.EvaluationName; +import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; + +public class SyncSearchExampleComparisonsEvaluationname { + + public static void main(String[] args) throws Exception { + syncSearchExampleComparisonsEvaluationname(); + } + + public static void syncSearchExampleComparisonsEvaluationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); + for (SearchExampleComparisonsResponse.ExampleComparison element : + dataLabelingServiceClient.searchExampleComparisons(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_evaluationname_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java new file mode 100644 index 00000000000..f0023271cae --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.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_searchexamplecomparisons_string_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.EvaluationName; +import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; + +public class SyncSearchExampleComparisonsString { + + public static void main(String[] args) throws Exception { + syncSearchExampleComparisonsString(); + } + + public static void syncSearchExampleComparisonsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + String parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); + for (SearchExampleComparisonsResponse.ExampleComparison element : + dataLabelingServiceClient.searchExampleComparisons(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_string_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java new file mode 100644 index 00000000000..a896afb4565 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.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_updateevaluationjob_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.UpdateEvaluationJobRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateEvaluationJob { + + public static void main(String[] args) throws Exception { + asyncUpdateEvaluationJob(); + } + + public static void asyncUpdateEvaluationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + UpdateEvaluationJobRequest request = + UpdateEvaluationJobRequest.newBuilder() + .setEvaluationJob(EvaluationJob.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + dataLabelingServiceClient.updateEvaluationJobCallable().futureCall(request); + // Do something. + EvaluationJob response = future.get(); + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_updateevaluationjob_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java new file mode 100644 index 00000000000..ef6dc738277 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.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_updateevaluationjob_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.EvaluationJob; +import com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateEvaluationJob { + + public static void main(String[] args) throws Exception { + syncUpdateEvaluationJob(); + } + + public static void syncUpdateEvaluationJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + UpdateEvaluationJobRequest request = + UpdateEvaluationJobRequest.newBuilder() + .setEvaluationJob(EvaluationJob.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + EvaluationJob response = dataLabelingServiceClient.updateEvaluationJob(request); + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_updateevaluationjob_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java new file mode 100644 index 00000000000..a138aebf051 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java @@ -0,0 +1,41 @@ +/* + * 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_updateevaluationjob_evaluationjobfieldmask_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; +import com.google.cloud.datalabeling.v1beta1.EvaluationJob; +import com.google.protobuf.FieldMask; + +public class SyncUpdateEvaluationJobEvaluationjobFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateEvaluationJobEvaluationjobFieldmask(); + } + + public static void syncUpdateEvaluationJobEvaluationjobFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { + EvaluationJob evaluationJob = EvaluationJob.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + EvaluationJob response = + dataLabelingServiceClient.updateEvaluationJob(evaluationJob, updateMask); + } + } +} +// [END datalabeling_v1beta1_generated_datalabelingserviceclient_updateevaluationjob_evaluationjobfieldmask_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java new file mode 100644 index 00000000000..cb50b0b8e78 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/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_datalabelingservicesettings_createdataset_sync] +import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings; +import java.time.Duration; + +public class SyncCreateDataset { + + public static void main(String[] args) throws Exception { + syncCreateDataset(); + } + + public static void syncCreateDataset() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder = + DataLabelingServiceSettings.newBuilder(); + dataLabelingServiceSettingsBuilder + .createDatasetSettings() + .setRetrySettings( + dataLabelingServiceSettingsBuilder + .createDatasetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DataLabelingServiceSettings dataLabelingServiceSettings = + dataLabelingServiceSettingsBuilder.build(); + } +} +// [END datalabeling_v1beta1_generated_datalabelingservicesettings_createdataset_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java new file mode 100644 index 00000000000..9e72ba875c0 --- /dev/null +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/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.stub.samples; + +// [START datalabeling_v1beta1_generated_datalabelingservicestubsettings_createdataset_sync] +import com.google.cloud.datalabeling.v1beta1.stub.DataLabelingServiceStubSettings; +import java.time.Duration; + +public class SyncCreateDataset { + + public static void main(String[] args) throws Exception { + syncCreateDataset(); + } + + public static void syncCreateDataset() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DataLabelingServiceStubSettings.Builder dataLabelingServiceSettingsBuilder = + DataLabelingServiceStubSettings.newBuilder(); + dataLabelingServiceSettingsBuilder + .createDatasetSettings() + .setRetrySettings( + dataLabelingServiceSettingsBuilder + .createDatasetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DataLabelingServiceStubSettings dataLabelingServiceSettings = + dataLabelingServiceSettingsBuilder.build(); + } +} +// [END datalabeling_v1beta1_generated_datalabelingservicestubsettings_createdataset_sync] From 7953b0ab08f5d86fad8a2f6a3d064080c6888007 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 31 Aug 2022 22:40:25 +0200 Subject: [PATCH 127/135] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.1 (#778) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.0` -> `26.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/compatibility-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/confidence-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index c8d88a1639a..e5a40483e89 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import From 20adfd221c27e1693f7e2633f74643abcd69de1c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 20:30:13 +0000 Subject: [PATCH 128/135] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#779) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../AsyncCreateAnnotationSpecSet.java | 7 +++++-- .../SyncCreateAnnotationSpecSet.java | 7 +++++-- ...reateAnnotationSpecSetProjectnameAnnotationspecset.java | 7 +++++-- ...SyncCreateAnnotationSpecSetStringAnnotationspecset.java | 7 +++++-- .../createdataset/AsyncCreateDataset.java | 7 +++++-- .../createdataset/SyncCreateDataset.java | 7 +++++-- .../createdataset/SyncCreateDatasetProjectnameDataset.java | 7 +++++-- .../createdataset/SyncCreateDatasetStringDataset.java | 7 +++++-- .../createevaluationjob/AsyncCreateEvaluationJob.java | 7 +++++-- .../createevaluationjob/SyncCreateEvaluationJob.java | 7 +++++-- .../SyncCreateEvaluationJobProjectnameEvaluationjob.java | 7 +++++-- .../SyncCreateEvaluationJobStringEvaluationjob.java | 7 +++++-- .../createinstruction/AsyncCreateInstruction.java | 7 +++++-- .../createinstruction/AsyncCreateInstructionLRO.java | 7 +++++-- .../createinstruction/SyncCreateInstruction.java | 7 +++++-- .../SyncCreateInstructionProjectnameInstruction.java | 7 +++++-- .../SyncCreateInstructionStringInstruction.java | 7 +++++-- .../AsyncDeleteAnnotatedDataset.java | 7 +++++-- .../deleteannotateddataset/SyncDeleteAnnotatedDataset.java | 7 +++++-- .../AsyncDeleteAnnotationSpecSet.java | 7 +++++-- .../SyncDeleteAnnotationSpecSet.java | 7 +++++-- .../SyncDeleteAnnotationSpecSetAnnotationspecsetname.java | 7 +++++-- .../SyncDeleteAnnotationSpecSetString.java | 7 +++++-- .../deletedataset/AsyncDeleteDataset.java | 7 +++++-- .../deletedataset/SyncDeleteDataset.java | 7 +++++-- .../deletedataset/SyncDeleteDatasetDatasetname.java | 7 +++++-- .../deletedataset/SyncDeleteDatasetString.java | 7 +++++-- .../deleteevaluationjob/AsyncDeleteEvaluationJob.java | 7 +++++-- .../deleteevaluationjob/SyncDeleteEvaluationJob.java | 7 +++++-- .../SyncDeleteEvaluationJobEvaluationjobname.java | 7 +++++-- .../deleteevaluationjob/SyncDeleteEvaluationJobString.java | 7 +++++-- .../deleteinstruction/AsyncDeleteInstruction.java | 7 +++++-- .../deleteinstruction/SyncDeleteInstruction.java | 7 +++++-- .../SyncDeleteInstructionInstructionname.java | 7 +++++-- .../deleteinstruction/SyncDeleteInstructionString.java | 7 +++++-- .../exportdata/AsyncExportData.java | 7 +++++-- .../exportdata/AsyncExportDataLRO.java | 7 +++++-- .../exportdata/SyncExportData.java | 7 +++++-- ...aDatasetnameAnnotateddatasetnameStringOutputconfig.java | 7 +++++-- .../SyncExportDataDatasetnameStringStringOutputconfig.java | 7 +++++-- ...rtDataStringAnnotateddatasetnameStringOutputconfig.java | 7 +++++-- .../SyncExportDataStringStringStringOutputconfig.java | 7 +++++-- .../getannotateddataset/AsyncGetAnnotatedDataset.java | 7 +++++-- .../getannotateddataset/SyncGetAnnotatedDataset.java | 7 +++++-- .../SyncGetAnnotatedDatasetAnnotateddatasetname.java | 7 +++++-- .../getannotateddataset/SyncGetAnnotatedDatasetString.java | 7 +++++-- .../getannotationspecset/AsyncGetAnnotationSpecSet.java | 7 +++++-- .../getannotationspecset/SyncGetAnnotationSpecSet.java | 7 +++++-- .../SyncGetAnnotationSpecSetAnnotationspecsetname.java | 7 +++++-- .../SyncGetAnnotationSpecSetString.java | 7 +++++-- .../getdataitem/AsyncGetDataItem.java | 7 +++++-- .../getdataitem/SyncGetDataItem.java | 7 +++++-- .../getdataitem/SyncGetDataItemDataitemname.java | 7 +++++-- .../getdataitem/SyncGetDataItemString.java | 7 +++++-- .../getdataset/AsyncGetDataset.java | 7 +++++-- .../getdataset/SyncGetDataset.java | 7 +++++-- .../getdataset/SyncGetDatasetDatasetname.java | 7 +++++-- .../getdataset/SyncGetDatasetString.java | 7 +++++-- .../getevaluation/AsyncGetEvaluation.java | 7 +++++-- .../getevaluation/SyncGetEvaluation.java | 7 +++++-- .../getevaluation/SyncGetEvaluationEvaluationname.java | 7 +++++-- .../getevaluation/SyncGetEvaluationString.java | 7 +++++-- .../getevaluationjob/AsyncGetEvaluationJob.java | 7 +++++-- .../getevaluationjob/SyncGetEvaluationJob.java | 7 +++++-- .../SyncGetEvaluationJobEvaluationjobname.java | 7 +++++-- .../getevaluationjob/SyncGetEvaluationJobString.java | 7 +++++-- .../getexample/AsyncGetExample.java | 7 +++++-- .../getexample/SyncGetExample.java | 7 +++++-- .../getexample/SyncGetExampleExamplenameString.java | 7 +++++-- .../getexample/SyncGetExampleStringString.java | 7 +++++-- .../getinstruction/AsyncGetInstruction.java | 7 +++++-- .../getinstruction/SyncGetInstruction.java | 7 +++++-- .../getinstruction/SyncGetInstructionInstructionname.java | 7 +++++-- .../getinstruction/SyncGetInstructionString.java | 7 +++++-- .../importdata/AsyncImportData.java | 7 +++++-- .../importdata/AsyncImportDataLRO.java | 7 +++++-- .../importdata/SyncImportData.java | 7 +++++-- .../importdata/SyncImportDataDatasetnameInputconfig.java | 7 +++++-- .../importdata/SyncImportDataStringInputconfig.java | 7 +++++-- .../labelimage/AsyncLabelImage.java | 7 +++++-- .../labelimage/AsyncLabelImageLRO.java | 7 +++++-- .../labelimage/SyncLabelImage.java | 7 +++++-- ...tnameHumanannotationconfigLabelimagerequestfeature.java | 7 +++++-- ...tringHumanannotationconfigLabelimagerequestfeature.java | 7 +++++-- .../labeltext/AsyncLabelText.java | 7 +++++-- .../labeltext/AsyncLabelTextLRO.java | 7 +++++-- .../datalabelingserviceclient/labeltext/SyncLabelText.java | 7 +++++-- ...etnameHumanannotationconfigLabeltextrequestfeature.java | 7 +++++-- ...StringHumanannotationconfigLabeltextrequestfeature.java | 7 +++++-- .../labelvideo/AsyncLabelVideo.java | 7 +++++-- .../labelvideo/AsyncLabelVideoLRO.java | 7 +++++-- .../labelvideo/SyncLabelVideo.java | 7 +++++-- ...tnameHumanannotationconfigLabelvideorequestfeature.java | 7 +++++-- ...tringHumanannotationconfigLabelvideorequestfeature.java | 7 +++++-- .../listannotateddatasets/AsyncListAnnotatedDatasets.java | 7 +++++-- .../AsyncListAnnotatedDatasetsPaged.java | 7 +++++-- .../listannotateddatasets/SyncListAnnotatedDatasets.java | 7 +++++-- .../SyncListAnnotatedDatasetsDatasetnameString.java | 7 +++++-- .../SyncListAnnotatedDatasetsStringString.java | 7 +++++-- .../AsyncListAnnotationSpecSets.java | 7 +++++-- .../AsyncListAnnotationSpecSetsPaged.java | 7 +++++-- .../listannotationspecsets/SyncListAnnotationSpecSets.java | 7 +++++-- .../SyncListAnnotationSpecSetsProjectnameString.java | 7 +++++-- .../SyncListAnnotationSpecSetsStringString.java | 7 +++++-- .../listdataitems/AsyncListDataItems.java | 7 +++++-- .../listdataitems/AsyncListDataItemsPaged.java | 7 +++++-- .../listdataitems/SyncListDataItems.java | 7 +++++-- .../listdataitems/SyncListDataItemsDatasetnameString.java | 7 +++++-- .../listdataitems/SyncListDataItemsStringString.java | 7 +++++-- .../listdatasets/AsyncListDatasets.java | 7 +++++-- .../listdatasets/AsyncListDatasetsPaged.java | 7 +++++-- .../listdatasets/SyncListDatasets.java | 7 +++++-- .../listdatasets/SyncListDatasetsProjectnameString.java | 7 +++++-- .../listdatasets/SyncListDatasetsStringString.java | 7 +++++-- .../listevaluationjobs/AsyncListEvaluationJobs.java | 7 +++++-- .../listevaluationjobs/AsyncListEvaluationJobsPaged.java | 7 +++++-- .../listevaluationjobs/SyncListEvaluationJobs.java | 7 +++++-- .../SyncListEvaluationJobsProjectnameString.java | 7 +++++-- .../SyncListEvaluationJobsStringString.java | 7 +++++-- .../listexamples/AsyncListExamples.java | 7 +++++-- .../listexamples/AsyncListExamplesPaged.java | 7 +++++-- .../listexamples/SyncListExamples.java | 7 +++++-- .../SyncListExamplesAnnotateddatasetnameString.java | 7 +++++-- .../listexamples/SyncListExamplesStringString.java | 7 +++++-- .../listinstructions/AsyncListInstructions.java | 7 +++++-- .../listinstructions/AsyncListInstructionsPaged.java | 7 +++++-- .../listinstructions/SyncListInstructions.java | 7 +++++-- .../SyncListInstructionsProjectnameString.java | 7 +++++-- .../listinstructions/SyncListInstructionsStringString.java | 7 +++++-- .../pauseevaluationjob/AsyncPauseEvaluationJob.java | 7 +++++-- .../pauseevaluationjob/SyncPauseEvaluationJob.java | 7 +++++-- .../SyncPauseEvaluationJobEvaluationjobname.java | 7 +++++-- .../pauseevaluationjob/SyncPauseEvaluationJobString.java | 7 +++++-- .../resumeevaluationjob/AsyncResumeEvaluationJob.java | 7 +++++-- .../resumeevaluationjob/SyncResumeEvaluationJob.java | 7 +++++-- .../SyncResumeEvaluationJobEvaluationjobname.java | 7 +++++-- .../resumeevaluationjob/SyncResumeEvaluationJobString.java | 7 +++++-- .../searchevaluations/AsyncSearchEvaluations.java | 7 +++++-- .../searchevaluations/AsyncSearchEvaluationsPaged.java | 7 +++++-- .../searchevaluations/SyncSearchEvaluations.java | 7 +++++-- .../SyncSearchEvaluationsEvaluationnameString.java | 7 +++++-- .../SyncSearchEvaluationsStringString.java | 7 +++++-- .../AsyncSearchExampleComparisons.java | 7 +++++-- .../AsyncSearchExampleComparisonsPaged.java | 7 +++++-- .../SyncSearchExampleComparisons.java | 7 +++++-- .../SyncSearchExampleComparisonsEvaluationname.java | 7 +++++-- .../SyncSearchExampleComparisonsString.java | 7 +++++-- .../updateevaluationjob/AsyncUpdateEvaluationJob.java | 7 +++++-- .../updateevaluationjob/SyncUpdateEvaluationJob.java | 7 +++++-- .../SyncUpdateEvaluationJobEvaluationjobFieldmask.java | 7 +++++-- .../createdataset/SyncCreateDataset.java | 7 +++++-- .../createdataset/SyncCreateDataset.java | 7 +++++-- 154 files changed, 770 insertions(+), 308 deletions(-) diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java index c132d83a9c3..76b40b7d329 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataLabelingServiceSettings dataLabelingServiceSettings = DataLabelingServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java index 26efcd06336..b75f8a58c0c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataLabelingServiceSettings dataLabelingServiceSettings = DataLabelingServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); DataLabelingServiceClient dataLabelingServiceClient = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java index 05a1680f52d..ef2ccb4d024 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java index 3e49c1b79e5..ce007d7d98c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java index 02c035a33cd..c9b07a8b6cf 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAnnotationSpecSetProjectnameAnnotationspecset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java index 33f639fabaa..68331adbe64 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAnnotationSpecSetStringAnnotationspecset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java index 888b194eb9b..cdf2f8eeb66 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java index eda0e133bf7..6ee2413dc41 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java index 383fecda919..6ffa02c013a 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDatasetProjectnameDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); Dataset dataset = Dataset.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java index 9689119bfcb..d589af310d8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDatasetStringDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); Dataset dataset = Dataset.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java index 3b605def21b..ed00cad317b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateEvaluationJobRequest request = CreateEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java index a7f0e61b7c4..a2917e863d1 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateEvaluationJobRequest request = CreateEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java index d5e27e6b1b2..1894e85bf71 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEvaluationJobProjectnameEvaluationjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); EvaluationJob job = EvaluationJob.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java index 869a69e95f5..87e43379397 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEvaluationJobStringEvaluationjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); EvaluationJob job = EvaluationJob.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java index a013833f91c..38fe517b265 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateInstructionRequest request = CreateInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java index 360083058c2..154601c70ff 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateInstructionLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateInstructionRequest request = CreateInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java index be9568e0209..28da0e79f79 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { CreateInstructionRequest request = CreateInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java index c0b6665900e..1deccd1e67b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstructionProjectnameInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); Instruction instruction = Instruction.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java index eac373dfa48..fc823202f97 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstructionStringInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); Instruction instruction = Instruction.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java index eac1a11bdd2..8950a95a50b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteAnnotatedDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteAnnotatedDatasetRequest request = DeleteAnnotatedDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java index d2d800c91b5..50ac382ca74 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAnnotatedDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteAnnotatedDatasetRequest request = DeleteAnnotatedDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java index 9c824dec63e..8061425b159 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java index 1057a0af092..de81bddb7c9 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java index 6f4e3ad651c..c92e302dd33 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAnnotationSpecSetAnnotationspecsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); dataLabelingServiceClient.deleteAnnotationSpecSet(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java index 87919c3706e..3684a0ef47f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteAnnotationSpecSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]").toString(); dataLabelingServiceClient.deleteAnnotationSpecSet(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java index 25558da6bc5..9ea0e91c08f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java index 7c3657f3ef3..756e90dd57c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java index bcbfe77d889..feb59ed8c7b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteDatasetDatasetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); dataLabelingServiceClient.deleteDataset(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java index 04120bf4768..76ccc647d02 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteDatasetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); dataLabelingServiceClient.deleteDataset(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java index 3bacc3bcec1..9ee86a53305 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java index f37da8ada4f..d22b7dab21b 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java index 3aeb26d9fff..ad88441bc08 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEvaluationJobEvaluationjobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); dataLabelingServiceClient.deleteEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java index d83c7193499..a6e98fb9078 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEvaluationJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString(); dataLabelingServiceClient.deleteEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java index d4f16bec16f..f672771da36 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java index 4a9546d6be1..b08c8d94564 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java index 54d4b143b0e..0699911faa2 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstructionInstructionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); dataLabelingServiceClient.deleteInstruction(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java index bda4045b1ae..d896230cb39 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstructionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = InstructionName.of("[PROJECT]", "[INSTRUCTION]").toString(); dataLabelingServiceClient.deleteInstruction(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java index a59e44f717c..25fb8f04f12 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportData() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ExportDataRequest request = ExportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java index fa75aa724f5..7be082df343 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportDataLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ExportDataRequest request = ExportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java index eaa9aad62b0..d349e6ea2dc 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportData() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ExportDataRequest request = ExportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java index e5ed8a6478c..a0cf55ba42d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); AnnotatedDatasetName annotatedDataset = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java index 1baac1ce5df..6f80dd56cda 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportDataDatasetnameStringStringOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); String annotatedDataset = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java index dcf73b89f3b..a022a38defe 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportDataStringAnnotateddatasetnameStringOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); AnnotatedDatasetName annotatedDataset = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java index caa2b929073..10abfc46960 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportDataStringStringStringOutputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); String annotatedDataset = diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java index 31a8530acd0..596a5b0d0d5 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetAnnotatedDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetAnnotatedDatasetRequest request = GetAnnotatedDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java index d5eed55721c..f9ba2609ea9 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotatedDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetAnnotatedDatasetRequest request = GetAnnotatedDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java index 704fd7fc597..620e5a26aca 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotatedDatasetAnnotateddatasetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { AnnotatedDatasetName name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java index eb9004c34c9..eff779f1de0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotatedDatasetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]").toString(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java index 8b6ae2c1a11..b37a0989791 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetAnnotationSpecSetRequest request = GetAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java index 8cafb4899b4..a53ff40e0be 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotationSpecSet() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetAnnotationSpecSetRequest request = GetAnnotationSpecSetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java index e1b5ecca8f2..361d9a72b08 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotationSpecSetAnnotationspecsetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); AnnotationSpecSet response = dataLabelingServiceClient.getAnnotationSpecSet(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java index 57759e0000e..6987b374e10 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetAnnotationSpecSetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]").toString(); AnnotationSpecSet response = dataLabelingServiceClient.getAnnotationSpecSet(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java index ba3208a0712..cc54cc49700 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetDataItem() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetDataItemRequest request = GetDataItemRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java index 254306d072f..6aa86b0c890 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDataItem() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetDataItemRequest request = GetDataItemRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java index ec4d0881c56..3ce14c2f21e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDataItemDataitemname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DataItemName name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]"); DataItem response = dataLabelingServiceClient.getDataItem(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java index 0bb6bb11060..afc149e8b42 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDataItemString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]").toString(); DataItem response = dataLabelingServiceClient.getDataItem(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java index 7665af281f4..35d59054ef9 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetDatasetRequest request = GetDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java index 4a435b7c6c2..a0da8de93ce 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetDatasetRequest request = GetDatasetRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java index fcdb843adab..0b49aa07b11 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDatasetDatasetname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); Dataset response = dataLabelingServiceClient.getDataset(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java index 6b238a6dc52..83080c40124 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetDatasetString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); Dataset response = dataLabelingServiceClient.getDataset(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java index 5b1c4415a29..a75835f7d1f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetEvaluation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java index aa6f500f62b..a94871c7022 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java index 36d28563b99..0010ec89583 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationEvaluationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationName name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); Evaluation response = dataLabelingServiceClient.getEvaluation(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java index ea4dbbbec43..8f362818139 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); Evaluation response = dataLabelingServiceClient.getEvaluation(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java index 0efb957cd47..f9ed09a4c2c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetEvaluationJobRequest request = GetEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java index 2a91c1acfcd..9512bfa00bb 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetEvaluationJobRequest request = GetEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java index 9616509c903..49ef2afb789 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationJobEvaluationjobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); EvaluationJob response = dataLabelingServiceClient.getEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java index 731be76bcae..cc23c9cf5ad 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEvaluationJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString(); EvaluationJob response = dataLabelingServiceClient.getEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java index afb7a62c48f..2ff87ae6b7c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetExample() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetExampleRequest request = GetExampleRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java index 0887901b8a8..c4252c63e48 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetExample() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetExampleRequest request = GetExampleRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java index 3777ba7ca0e..3bc232f2645 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetExampleExamplenameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ExampleName name = ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]"); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java index afbc9d71a17..187daec2610 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetExampleStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]").toString(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java index 19c6a4dc297..adaf1500e24 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetInstructionRequest request = GetInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java index 56a03e8aff7..9b1dd23209d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstruction() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { GetInstructionRequest request = GetInstructionRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java index 2e6cacf112d..45a7319eeb6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstructionInstructionname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); Instruction response = dataLabelingServiceClient.getInstruction(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java index 0559a1e8e78..02129b52d83 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstructionString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = InstructionName.of("[PROJECT]", "[INSTRUCTION]").toString(); Instruction response = dataLabelingServiceClient.getInstruction(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java index 8526beeda50..74ff9549bad 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportData() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ImportDataRequest request = ImportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java index 2c000a23dd6..c22eb2d2a00 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportDataLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ImportDataRequest request = ImportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java index 367c99aced2..113e35ab31e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportData() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ImportDataRequest request = ImportDataRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java index 3c104980a0f..c9a54aafd4f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportDataDatasetnameInputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); InputConfig inputConfig = InputConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java index e89887497d5..bb376fa0444 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportDataStringInputconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = DatasetName.of("[PROJECT]", "[DATASET]").toString(); InputConfig inputConfig = InputConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java index de92c42e21d..c74b3782eb8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelImageRequest request = LabelImageRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java index 181c811a6be..782d64f96a4 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelImageLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelImageRequest request = LabelImageRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java index 16edd588b38..3ae2a05a284 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncLabelImage() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelImageRequest request = LabelImageRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java index c5f79ebd9cb..c961ee1fd7a 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java index 090539c21f7..396b1858509 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelImageStringHumanannotationconfigLabelimagerequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java index 4ceccf339b1..319c1fd6d57 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelText() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelTextRequest request = LabelTextRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java index 2f22799a240..3f378b6ad7a 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelTextLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelTextRequest request = LabelTextRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java index dab10284bd8..9d713b1dbbf 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncLabelText() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelTextRequest request = LabelTextRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java index c62b578df68..2f8f3326f80 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java index 060f5cb9851..5fd877b93b3 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelTextStringHumanannotationconfigLabeltextrequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java index be1f35c27a9..03be90a92a8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelVideo() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelVideoRequest request = LabelVideoRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java index 741d8166845..0edd94ff74c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncLabelVideoLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelVideoRequest request = LabelVideoRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java index ff423baa947..e151149e3c8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncLabelVideo() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { LabelVideoRequest request = LabelVideoRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java index ae41c7836a3..f58203e714a 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java index 13c4010f8ac..ac8f867c216 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncLabelVideoStringHumanannotationconfigLabelvideorequestfeature() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java index 7e67e7da484..ac72ff92762 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAnnotatedDatasets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java index 0814f16716e..8ae9f1e57a7 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAnnotatedDatasetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java index 21c515d2386..3b151cd28e0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotatedDatasets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java index d7825e17ff7..c0c27ef632c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotatedDatasetsDatasetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java index 1e590017c1d..23308628ab4 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotatedDatasetsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java index 57e428fc44d..632edcd5271 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAnnotationSpecSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java index 555061e4bdf..fb40bd3a0f6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListAnnotationSpecSetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java index f1c851fe5d1..10ec0755fef 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotationSpecSets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java index 73b8c608701..f9c063170ee 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotationSpecSetsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java index 0f5f7e1ee66..7f96d929c55 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListAnnotationSpecSetsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java index f5282d05a2b..f4b3537c37f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDataItems() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDataItemsRequest request = ListDataItemsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java index 62c1fc6bfd1..2acb0a02adc 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDataItemsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDataItemsRequest request = ListDataItemsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java index 6d2ff0479f4..5d8037ef5d5 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDataItems() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDataItemsRequest request = ListDataItemsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java index 7c0675042c8..a7d364fdc6e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDataItemsDatasetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java index e4b1aab1b36..1b728fdf382 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDataItemsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = DatasetName.of("[PROJECT]", "[DATASET]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java index 4a90525503a..bc924ad6853 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDatasets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java index ca29ff72315..1f5486c3863 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListDatasetsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java index 1a33989b6cd..d6edffb1498 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDatasets() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java index 283ff8cca70..cf59e68d875 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDatasetsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java index 5ba3108fe74..d47114530bc 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListDatasetsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java index 94b919e121b..2e1e9e73383 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListEvaluationJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java index 0d98172e223..77ed44b6e03 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListEvaluationJobsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java index 11de769cba8..5e933222845 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEvaluationJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java index 270c9ced847..d6f740980b6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEvaluationJobsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java index 01b475a4926..081d9d4698e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEvaluationJobsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java index 09e4245f022..d342f951c46 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListExamples() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListExamplesRequest request = ListExamplesRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java index 3e7c0adccd3..3f163a886a3 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListExamplesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListExamplesRequest request = ListExamplesRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java index 004588e6fcd..05547e072e2 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListExamples() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListExamplesRequest request = ListExamplesRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java index 19d117a4c0e..5aab18f75de 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListExamplesAnnotateddatasetnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { AnnotatedDatasetName parent = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java index d8afb8125ad..d8659ad0555 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListExamplesStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]").toString(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java index b934c6871a3..5cd31e6625f 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInstructions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListInstructionsRequest request = ListInstructionsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java index 9dcb89fc7ca..c3469f2874d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInstructionsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListInstructionsRequest request = ListInstructionsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java index 246e744ed77..0bef90eaaa0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstructions() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ListInstructionsRequest request = ListInstructionsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java index c066e6eb5bf..91045625fd6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstructionsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java index 1dd619c9225..e9dd7acaee0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstructionsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java index 185e44dbd5d..dab06b7cdda 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncPauseEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { PauseEvaluationJobRequest request = PauseEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java index fd06ffacfdb..50b185c3a5d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncPauseEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { PauseEvaluationJobRequest request = PauseEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java index 8153770710d..cc1b3db790e 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncPauseEvaluationJobEvaluationjobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); dataLabelingServiceClient.pauseEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java index 014120495bb..21a661554f5 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncPauseEvaluationJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString(); dataLabelingServiceClient.pauseEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java index c723236ee6a..baf23745010 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncResumeEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ResumeEvaluationJobRequest request = ResumeEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java index 5b47c05bb68..07c980eaa9c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncResumeEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { ResumeEvaluationJobRequest request = ResumeEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java index e36e4d06de8..64b23be4525 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncResumeEvaluationJobEvaluationjobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); dataLabelingServiceClient.resumeEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java index aa231be13dc..a1cdaf142b0 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncResumeEvaluationJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]").toString(); dataLabelingServiceClient.resumeEvaluationJob(name); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java index f55aafa1983..cd759458aeb 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchEvaluations() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java index da70f324dbd..f019fa3af8d 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchEvaluationsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java index 72cf95ad01d..0c5aa997bb8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchEvaluations() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java index 609bd503f5f..6b7b48144d6 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchEvaluationsEvaluationnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java index ae9b381fcf7..271309c4872 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchEvaluationsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); String filter = "filter-1274492040"; diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java index 954bf79e177..84063ee7579 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchExampleComparisons() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java index cf353b32690..feab1e06299 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchExampleComparisonsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java index dc123ebfc1a..aec99c45f00 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchExampleComparisons() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java index 3113fab5d41..c1ba30ac839 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchExampleComparisonsEvaluationname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); for (SearchExampleComparisonsResponse.ExampleComparison element : diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java index f0023271cae..2cd68bffe3c 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchExampleComparisonsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { String parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); for (SearchExampleComparisonsResponse.ExampleComparison element : diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java index a896afb4565..e36f178d658 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { UpdateEvaluationJobRequest request = UpdateEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java index ef6dc738277..28d86caaca9 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateEvaluationJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { UpdateEvaluationJobRequest request = UpdateEvaluationJobRequest.newBuilder() diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java index a138aebf051..cba6e1b2ee8 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateEvaluationJobEvaluationjobFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) { EvaluationJob evaluationJob = EvaluationJob.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java index cb50b0b8e78..9f8425067e2 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder = DataLabelingServiceSettings.newBuilder(); dataLabelingServiceSettingsBuilder diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java index 9e72ba875c0..cc880452226 100644 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java +++ b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateDataset() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataLabelingServiceStubSettings.Builder dataLabelingServiceSettingsBuilder = DataLabelingServiceStubSettings.newBuilder(); dataLabelingServiceSettingsBuilder From 303aeadfc73d26d22e7d09b442dd47ade0b73610 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 17:36:23 +0200 Subject: [PATCH 129/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.123.4 (#783) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.123.3` -> `0.123.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.4/compatibility-slim/0.123.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.4/confidence-slim/0.123.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index d2c2ffe11f9..f1cca86c297 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.3 + 0.123.4 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 622fe8641f2..26737389133 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.3 + 0.123.4 From 7ed86b0d3db776903a307db2b911adc179bacbf5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:14:28 +0200 Subject: [PATCH 130/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.123.5 (#788) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.123.4` -> `0.123.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.5/compatibility-slim/0.123.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.5/confidence-slim/0.123.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index f1cca86c297..db70944fc27 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.4 + 0.123.5 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 26737389133..369cdc064de 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.4 + 0.123.5 From 9800a22eb31a2e8091890f10b7195520bf0da0d8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 17:30:28 +0200 Subject: [PATCH 131/135] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 (#789) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index e5a40483e89..7bf44fca9aa 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import From 3633c1d89e5fc5e52ab38a638b9d1b89957e2e7a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 1 Oct 2022 00:12:51 +0200 Subject: [PATCH 132/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.123.6 (#800) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.123.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index db70944fc27..5d34b6c7d3a 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.5 + 0.123.6 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 369cdc064de..2254f617465 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.5 + 0.123.6 From ab30052558081003b14532babb80df7ad62cf3dd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Oct 2022 03:44:12 +0200 Subject: [PATCH 133/135] chore(deps): update dependency com.google.cloud:google-cloud-datalabeling to v0.123.7 (#805) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datalabeling](https://togithub.com/googleapis/java-datalabeling) | `0.123.6` -> `0.123.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.7/compatibility-slim/0.123.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-datalabeling/0.123.7/confidence-slim/0.123.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/install-without-bom/pom.xml | 2 +- datalabeling/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml index 5d34b6c7d3a..9f14c1d0f5e 100644 --- a/datalabeling/install-without-bom/pom.xml +++ b/datalabeling/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.6 + 0.123.7 diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml index 2254f617465..1f0049eded4 100644 --- a/datalabeling/snapshot/pom.xml +++ b/datalabeling/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datalabeling - 0.123.6 + 0.123.7 From 79a085ec01accca6b9e6d7a58d78d10630eaa68c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Oct 2022 20:00:41 +0200 Subject: [PATCH 134/135] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.3 (#806) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.2` -> `26.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/compatibility-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/confidence-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datalabeling). --- datalabeling/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml index 7bf44fca9aa..e94498f0a68 100644 --- a/datalabeling/snippets/pom.xml +++ b/datalabeling/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import From 4998c471f9e6837f70a93ebd5f65b91d7608faa5 Mon Sep 17 00:00:00 2001 From: ivanmkc Date: Tue, 8 Nov 2022 12:38:23 -0500 Subject: [PATCH 135/135] Removed unneeded files --- datalabeling/install-without-bom/pom.xml | 84 ------------------- datalabeling/pom.xml | 56 ------------- datalabeling/snapshot/pom.xml | 83 ------------------ .../SyncCreateSetCredentialsProvider.java | 45 ---------- .../create/SyncCreateSetEndpoint.java | 42 ---------- .../AsyncCreateAnnotationSpecSet.java | 51 ----------- .../SyncCreateAnnotationSpecSet.java | 47 ----------- ...onSpecSetProjectnameAnnotationspecset.java | 44 ---------- ...otationSpecSetStringAnnotationspecset.java | 44 ---------- .../createdataset/AsyncCreateDataset.java | 51 ----------- .../createdataset/SyncCreateDataset.java | 47 ----------- .../SyncCreateDatasetProjectnameDataset.java | 43 ---------- .../SyncCreateDatasetStringDataset.java | 43 ---------- .../AsyncCreateEvaluationJob.java | 51 ----------- .../SyncCreateEvaluationJob.java | 47 ----------- ...EvaluationJobProjectnameEvaluationjob.java | 43 ---------- ...reateEvaluationJobStringEvaluationjob.java | 43 ---------- .../AsyncCreateInstruction.java | 52 ------------ .../AsyncCreateInstructionLRO.java | 52 ------------ .../SyncCreateInstruction.java | 47 ----------- ...eateInstructionProjectnameInstruction.java | 44 ---------- ...yncCreateInstructionStringInstruction.java | 44 ---------- .../AsyncDeleteAnnotatedDataset.java | 52 ------------ .../SyncDeleteAnnotatedDataset.java | 48 ----------- .../AsyncDeleteAnnotationSpecSet.java | 50 ----------- .../SyncDeleteAnnotationSpecSet.java | 46 ---------- ...nnotationSpecSetAnnotationspecsetname.java | 42 ---------- .../SyncDeleteAnnotationSpecSetString.java | 42 ---------- .../deletedataset/AsyncDeleteDataset.java | 50 ----------- .../deletedataset/SyncDeleteDataset.java | 46 ---------- .../SyncDeleteDatasetDatasetname.java | 42 ---------- .../SyncDeleteDatasetString.java | 42 ---------- .../AsyncDeleteEvaluationJob.java | 50 ----------- .../SyncDeleteEvaluationJob.java | 46 ---------- ...cDeleteEvaluationJobEvaluationjobname.java | 42 ---------- .../SyncDeleteEvaluationJobString.java | 42 ---------- .../AsyncDeleteInstruction.java | 50 ----------- .../SyncDeleteInstruction.java | 46 ---------- .../SyncDeleteInstructionInstructionname.java | 42 ---------- .../SyncDeleteInstructionString.java | 42 ---------- .../exportdata/AsyncExportData.java | 58 ------------- .../exportdata/AsyncExportDataLRO.java | 59 ------------- .../exportdata/SyncExportData.java | 55 ------------ ...nnotateddatasetnameStringOutputconfig.java | 52 ------------ ...taDatasetnameStringStringOutputconfig.java | 51 ----------- ...nnotateddatasetnameStringOutputconfig.java | 51 ----------- ...ortDataStringStringStringOutputconfig.java | 51 ----------- .../AsyncGetAnnotatedDataset.java | 52 ------------ .../SyncGetAnnotatedDataset.java | 48 ----------- ...tAnnotatedDatasetAnnotateddatasetname.java | 43 ---------- .../SyncGetAnnotatedDatasetString.java | 43 ---------- .../AsyncGetAnnotationSpecSet.java | 50 ----------- .../SyncGetAnnotationSpecSet.java | 46 ---------- ...nnotationSpecSetAnnotationspecsetname.java | 42 ---------- .../SyncGetAnnotationSpecSetString.java | 42 ---------- .../getdataitem/AsyncGetDataItem.java | 50 ----------- .../getdataitem/SyncGetDataItem.java | 46 ---------- .../SyncGetDataItemDataitemname.java | 42 ---------- .../getdataitem/SyncGetDataItemString.java | 42 ---------- .../getdataset/AsyncGetDataset.java | 50 ----------- .../getdataset/SyncGetDataset.java | 46 ---------- .../getdataset/SyncGetDatasetDatasetname.java | 42 ---------- .../getdataset/SyncGetDatasetString.java | 42 ---------- .../getevaluation/AsyncGetEvaluation.java | 50 ----------- .../getevaluation/SyncGetEvaluation.java | 46 ---------- .../SyncGetEvaluationEvaluationname.java | 42 ---------- .../SyncGetEvaluationString.java | 42 ---------- .../AsyncGetEvaluationJob.java | 50 ----------- .../SyncGetEvaluationJob.java | 46 ---------- ...SyncGetEvaluationJobEvaluationjobname.java | 42 ---------- .../SyncGetEvaluationJobString.java | 42 ---------- .../getexample/AsyncGetExample.java | 53 ------------ .../getexample/SyncGetExample.java | 49 ----------- .../SyncGetExampleExamplenameString.java | 44 ---------- .../SyncGetExampleStringString.java | 44 ---------- .../getinstruction/AsyncGetInstruction.java | 50 ----------- .../getinstruction/SyncGetInstruction.java | 46 ---------- .../SyncGetInstructionInstructionname.java | 42 ---------- .../SyncGetInstructionString.java | 42 ---------- .../importdata/AsyncImportData.java | 53 ------------ .../importdata/AsyncImportDataLRO.java | 54 ------------ .../importdata/SyncImportData.java | 50 ----------- .../SyncImportDataDatasetnameInputconfig.java | 45 ---------- .../SyncImportDataStringInputconfig.java | 45 ---------- .../labelimage/AsyncLabelImage.java | 52 ------------ .../labelimage/AsyncLabelImageLRO.java | 53 ------------ .../labelimage/SyncLabelImage.java | 48 ----------- ...otationconfigLabelimagerequestfeature.java | 48 ----------- ...otationconfigLabelimagerequestfeature.java | 48 ----------- .../labeltext/AsyncLabelText.java | 52 ------------ .../labeltext/AsyncLabelTextLRO.java | 53 ------------ .../labeltext/SyncLabelText.java | 48 ----------- ...notationconfigLabeltextrequestfeature.java | 48 ----------- ...notationconfigLabeltextrequestfeature.java | 48 ----------- .../labelvideo/AsyncLabelVideo.java | 52 ------------ .../labelvideo/AsyncLabelVideoLRO.java | 53 ------------ .../labelvideo/SyncLabelVideo.java | 48 ----------- ...otationconfigLabelvideorequestfeature.java | 48 ----------- ...otationconfigLabelvideorequestfeature.java | 48 ----------- .../AsyncListAnnotatedDatasets.java | 55 ------------ .../AsyncListAnnotatedDatasetsPaged.java | 63 -------------- .../SyncListAnnotatedDatasets.java | 52 ------------ ...istAnnotatedDatasetsDatasetnameString.java | 46 ---------- ...SyncListAnnotatedDatasetsStringString.java | 46 ---------- .../AsyncListAnnotationSpecSets.java | 55 ------------ .../AsyncListAnnotationSpecSetsPaged.java | 63 -------------- .../SyncListAnnotationSpecSets.java | 52 ------------ ...stAnnotationSpecSetsProjectnameString.java | 46 ---------- ...yncListAnnotationSpecSetsStringString.java | 46 ---------- .../listdataitems/AsyncListDataItems.java | 55 ------------ .../AsyncListDataItemsPaged.java | 63 -------------- .../listdataitems/SyncListDataItems.java | 51 ----------- .../SyncListDataItemsDatasetnameString.java | 46 ---------- .../SyncListDataItemsStringString.java | 46 ---------- .../listdatasets/AsyncListDatasets.java | 55 ------------ .../listdatasets/AsyncListDatasetsPaged.java | 63 -------------- .../listdatasets/SyncListDatasets.java | 51 ----------- .../SyncListDatasetsProjectnameString.java | 45 ---------- .../SyncListDatasetsStringString.java | 45 ---------- .../AsyncListEvaluationJobs.java | 55 ------------ .../AsyncListEvaluationJobsPaged.java | 63 -------------- .../SyncListEvaluationJobs.java | 52 ------------ ...ncListEvaluationJobsProjectnameString.java | 46 ---------- .../SyncListEvaluationJobsStringString.java | 46 ---------- .../listexamples/AsyncListExamples.java | 57 ------------- .../listexamples/AsyncListExamplesPaged.java | 65 -------------- .../listexamples/SyncListExamples.java | 53 ------------ ...istExamplesAnnotateddatasetnameString.java | 46 ---------- .../SyncListExamplesStringString.java | 46 ---------- .../AsyncListInstructions.java | 55 ------------ .../AsyncListInstructionsPaged.java | 63 -------------- .../SyncListInstructions.java | 51 ----------- ...SyncListInstructionsProjectnameString.java | 46 ---------- .../SyncListInstructionsStringString.java | 46 ---------- .../AsyncPauseEvaluationJob.java | 50 ----------- .../SyncPauseEvaluationJob.java | 46 ---------- ...ncPauseEvaluationJobEvaluationjobname.java | 42 ---------- .../SyncPauseEvaluationJobString.java | 42 ---------- .../AsyncResumeEvaluationJob.java | 50 ----------- .../SyncResumeEvaluationJob.java | 46 ---------- ...cResumeEvaluationJobEvaluationjobname.java | 42 ---------- .../SyncResumeEvaluationJobString.java | 42 ---------- .../AsyncSearchEvaluations.java | 55 ------------ .../AsyncSearchEvaluationsPaged.java | 63 -------------- .../SyncSearchEvaluations.java | 51 ----------- ...SearchEvaluationsEvaluationnameString.java | 46 ---------- .../SyncSearchEvaluationsStringString.java | 46 ---------- .../AsyncSearchExampleComparisons.java | 54 ------------ .../AsyncSearchExampleComparisonsPaged.java | 62 -------------- .../SyncSearchExampleComparisons.java | 51 ----------- ...earchExampleComparisonsEvaluationname.java | 45 ---------- .../SyncSearchExampleComparisonsString.java | 45 ---------- .../AsyncUpdateEvaluationJob.java | 51 ----------- .../SyncUpdateEvaluationJob.java | 47 ----------- ...teEvaluationJobEvaluationjobFieldmask.java | 44 ---------- .../createdataset/SyncCreateDataset.java | 50 ----------- .../createdataset/SyncCreateDataset.java | 50 ----------- datalabeling/snippets/pom.xml | 60 ------------- 158 files changed, 7764 deletions(-) delete mode 100644 datalabeling/install-without-bom/pom.xml delete mode 100644 datalabeling/pom.xml delete mode 100644 datalabeling/snapshot/pom.xml delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java delete mode 100644 datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java delete mode 100644 datalabeling/snippets/pom.xml diff --git a/datalabeling/install-without-bom/pom.xml b/datalabeling/install-without-bom/pom.xml deleted file mode 100644 index 9f14c1d0f5e..00000000000 --- a/datalabeling/install-without-bom/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - 4.0.0 - com.google.cloud - datalabeling-install-without-bom - jar - Google Data Labeling Install Without Bom - https://github.com/googleapis/java-datalabeling - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - com.google.cloud - google-cloud-datalabeling - 0.123.7 - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - diff --git a/datalabeling/pom.xml b/datalabeling/pom.xml deleted file mode 100644 index bbfae0c05c5..00000000000 --- a/datalabeling/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-datalabeling-samples - 0.0.1-SNAPSHOT - pom - Google Data Labeling Samples Parent - https://github.com/googleapis/java-datalabeling - - Java idiomatic client for Google Cloud Platform services. - - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - install-without-bom - snapshot - snippets - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 3.0.0 - - true - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - - true - - - - - diff --git a/datalabeling/snapshot/pom.xml b/datalabeling/snapshot/pom.xml deleted file mode 100644 index 1f0049eded4..00000000000 --- a/datalabeling/snapshot/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - 4.0.0 - com.google.cloud - datalabeling-snapshot - jar - Google Data Labeling Snapshot Samples - https://github.com/googleapis/java-datalabeling - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.cloud - google-cloud-datalabeling - 0.123.7 - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - \ No newline at end of file diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 76b40b7d329..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index b75f8a58c0c..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java deleted file mode 100644 index ef2ccb4d024..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/AsyncCreateAnnotationSpecSet.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java deleted file mode 100644 index ce007d7d98c..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSet.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java deleted file mode 100644 index c9b07a8b6cf..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetProjectnameAnnotationspecset.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java deleted file mode 100644 index 68331adbe64..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createannotationspecset/SyncCreateAnnotationSpecSetStringAnnotationspecset.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java deleted file mode 100644 index cdf2f8eeb66..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/AsyncCreateDataset.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java deleted file mode 100644 index 6ee2413dc41..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDataset.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java deleted file mode 100644 index 6ffa02c013a..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetProjectnameDataset.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java deleted file mode 100644 index d589af310d8..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createdataset/SyncCreateDatasetStringDataset.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java deleted file mode 100644 index ed00cad317b..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/AsyncCreateEvaluationJob.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java deleted file mode 100644 index a2917e863d1..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJob.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java deleted file mode 100644 index 1894e85bf71..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobProjectnameEvaluationjob.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java deleted file mode 100644 index 87e43379397..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createevaluationjob/SyncCreateEvaluationJobStringEvaluationjob.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java deleted file mode 100644 index 38fe517b265..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstruction.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java deleted file mode 100644 index 154601c70ff..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/AsyncCreateInstructionLRO.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java deleted file mode 100644 index 28da0e79f79..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstruction.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java deleted file mode 100644 index 1deccd1e67b..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionProjectnameInstruction.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java deleted file mode 100644 index fc823202f97..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/createinstruction/SyncCreateInstructionStringInstruction.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java deleted file mode 100644 index 8950a95a50b..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/AsyncDeleteAnnotatedDataset.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java deleted file mode 100644 index 50ac382ca74..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotateddataset/SyncDeleteAnnotatedDataset.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java deleted file mode 100644 index 8061425b159..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/AsyncDeleteAnnotationSpecSet.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java deleted file mode 100644 index de81bddb7c9..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSet.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java deleted file mode 100644 index c92e302dd33..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetAnnotationspecsetname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java deleted file mode 100644 index 3684a0ef47f..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteannotationspecset/SyncDeleteAnnotationSpecSetString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java deleted file mode 100644 index 9ea0e91c08f..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/AsyncDeleteDataset.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java deleted file mode 100644 index 756e90dd57c..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDataset.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java deleted file mode 100644 index feb59ed8c7b..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetDatasetname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java deleted file mode 100644 index 76ccc647d02..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deletedataset/SyncDeleteDatasetString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java deleted file mode 100644 index 9ee86a53305..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/AsyncDeleteEvaluationJob.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java deleted file mode 100644 index d22b7dab21b..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJob.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java deleted file mode 100644 index ad88441bc08..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobEvaluationjobname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java deleted file mode 100644 index a6e98fb9078..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteevaluationjob/SyncDeleteEvaluationJobString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java deleted file mode 100644 index f672771da36..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/AsyncDeleteInstruction.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java deleted file mode 100644 index b08c8d94564..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstruction.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java deleted file mode 100644 index 0699911faa2..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionInstructionname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java deleted file mode 100644 index d896230cb39..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/deleteinstruction/SyncDeleteInstructionString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java deleted file mode 100644 index 25fb8f04f12..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportData.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java deleted file mode 100644 index 7be082df343..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/AsyncExportDataLRO.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java deleted file mode 100644 index d349e6ea2dc..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportData.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java deleted file mode 100644 index a0cf55ba42d..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameAnnotateddatasetnameStringOutputconfig.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java deleted file mode 100644 index 6f80dd56cda..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataDatasetnameStringStringOutputconfig.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java deleted file mode 100644 index a022a38defe..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringAnnotateddatasetnameStringOutputconfig.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java deleted file mode 100644 index 10abfc46960..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/exportdata/SyncExportDataStringStringStringOutputconfig.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java deleted file mode 100644 index 596a5b0d0d5..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/AsyncGetAnnotatedDataset.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java deleted file mode 100644 index f9ba2609ea9..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDataset.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java deleted file mode 100644 index 620e5a26aca..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetAnnotateddatasetname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java deleted file mode 100644 index eff779f1de0..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotateddataset/SyncGetAnnotatedDatasetString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java deleted file mode 100644 index b37a0989791..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/AsyncGetAnnotationSpecSet.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java deleted file mode 100644 index a53ff40e0be..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSet.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java deleted file mode 100644 index 361d9a72b08..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetAnnotationspecsetname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java deleted file mode 100644 index 6987b374e10..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getannotationspecset/SyncGetAnnotationSpecSetString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java deleted file mode 100644 index cc54cc49700..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/AsyncGetDataItem.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java deleted file mode 100644 index 6aa86b0c890..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItem.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java deleted file mode 100644 index 3ce14c2f21e..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemDataitemname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java deleted file mode 100644 index afc149e8b42..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataitem/SyncGetDataItemString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java deleted file mode 100644 index 35d59054ef9..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/AsyncGetDataset.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java deleted file mode 100644 index a0da8de93ce..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDataset.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java deleted file mode 100644 index 0b49aa07b11..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetDatasetname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java deleted file mode 100644 index 83080c40124..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getdataset/SyncGetDatasetString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java deleted file mode 100644 index a75835f7d1f..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/AsyncGetEvaluation.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java deleted file mode 100644 index a94871c7022..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluation.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java deleted file mode 100644 index 0010ec89583..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationEvaluationname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java deleted file mode 100644 index 8f362818139..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluation/SyncGetEvaluationString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java deleted file mode 100644 index f9ed09a4c2c..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/AsyncGetEvaluationJob.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java deleted file mode 100644 index 9512bfa00bb..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJob.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java deleted file mode 100644 index 49ef2afb789..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobEvaluationjobname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java deleted file mode 100644 index cc23c9cf5ad..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getevaluationjob/SyncGetEvaluationJobString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java deleted file mode 100644 index 2ff87ae6b7c..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/AsyncGetExample.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java deleted file mode 100644 index c4252c63e48..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExample.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java deleted file mode 100644 index 3bc232f2645..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleExamplenameString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java deleted file mode 100644 index 187daec2610..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getexample/SyncGetExampleStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java deleted file mode 100644 index adaf1500e24..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/AsyncGetInstruction.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java deleted file mode 100644 index 9b1dd23209d..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstruction.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java deleted file mode 100644 index 45a7319eeb6..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionInstructionname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java deleted file mode 100644 index 02129b52d83..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/getinstruction/SyncGetInstructionString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java deleted file mode 100644 index 74ff9549bad..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportData.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java deleted file mode 100644 index c22eb2d2a00..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/AsyncImportDataLRO.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java deleted file mode 100644 index 113e35ab31e..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportData.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java deleted file mode 100644 index c9a54aafd4f..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataDatasetnameInputconfig.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java deleted file mode 100644 index bb376fa0444..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/importdata/SyncImportDataStringInputconfig.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java deleted file mode 100644 index c74b3782eb8..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImage.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java deleted file mode 100644 index 782d64f96a4..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/AsyncLabelImageLRO.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java deleted file mode 100644 index 3ae2a05a284..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImage.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java deleted file mode 100644 index c961ee1fd7a..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageDatasetnameHumanannotationconfigLabelimagerequestfeature.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java deleted file mode 100644 index 396b1858509..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelimage/SyncLabelImageStringHumanannotationconfigLabelimagerequestfeature.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java deleted file mode 100644 index 319c1fd6d57..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelText.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java deleted file mode 100644 index 3f378b6ad7a..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/AsyncLabelTextLRO.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java deleted file mode 100644 index 9d713b1dbbf..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelText.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java deleted file mode 100644 index 2f8f3326f80..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextDatasetnameHumanannotationconfigLabeltextrequestfeature.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java deleted file mode 100644 index 5fd877b93b3..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labeltext/SyncLabelTextStringHumanannotationconfigLabeltextrequestfeature.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java deleted file mode 100644 index 03be90a92a8..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideo.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java deleted file mode 100644 index 0edd94ff74c..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/AsyncLabelVideoLRO.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java deleted file mode 100644 index e151149e3c8..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideo.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java deleted file mode 100644 index f58203e714a..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoDatasetnameHumanannotationconfigLabelvideorequestfeature.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java deleted file mode 100644 index ac8f867c216..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/labelvideo/SyncLabelVideoStringHumanannotationconfigLabelvideorequestfeature.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java deleted file mode 100644 index ac72ff92762..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasets.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java deleted file mode 100644 index 8ae9f1e57a7..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/AsyncListAnnotatedDatasetsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java deleted file mode 100644 index 3b151cd28e0..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasets.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java deleted file mode 100644 index c0c27ef632c..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsDatasetnameString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java deleted file mode 100644 index 23308628ab4..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotateddatasets/SyncListAnnotatedDatasetsStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java deleted file mode 100644 index 632edcd5271..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSets.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java deleted file mode 100644 index fb40bd3a0f6..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/AsyncListAnnotationSpecSetsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java deleted file mode 100644 index 10ec0755fef..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSets.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java deleted file mode 100644 index f9c063170ee..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsProjectnameString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java deleted file mode 100644 index 7f96d929c55..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listannotationspecsets/SyncListAnnotationSpecSetsStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java deleted file mode 100644 index f4b3537c37f..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItems.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java deleted file mode 100644 index 2acb0a02adc..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/AsyncListDataItemsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java deleted file mode 100644 index 5d8037ef5d5..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItems.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java deleted file mode 100644 index a7d364fdc6e..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsDatasetnameString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java deleted file mode 100644 index 1b728fdf382..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdataitems/SyncListDataItemsStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java deleted file mode 100644 index bc924ad6853..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasets.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java deleted file mode 100644 index 1f5486c3863..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/AsyncListDatasetsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java deleted file mode 100644 index d6edffb1498..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasets.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java deleted file mode 100644 index cf59e68d875..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsProjectnameString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java deleted file mode 100644 index d47114530bc..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listdatasets/SyncListDatasetsStringString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java deleted file mode 100644 index 2e1e9e73383..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobs.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java deleted file mode 100644 index 77ed44b6e03..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/AsyncListEvaluationJobsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java deleted file mode 100644 index 5e933222845..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobs.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java deleted file mode 100644 index d6f740980b6..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsProjectnameString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java deleted file mode 100644 index 081d9d4698e..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listevaluationjobs/SyncListEvaluationJobsStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java deleted file mode 100644 index d342f951c46..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamples.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java deleted file mode 100644 index 3f163a886a3..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/AsyncListExamplesPaged.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java deleted file mode 100644 index 05547e072e2..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamples.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java deleted file mode 100644 index 5aab18f75de..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesAnnotateddatasetnameString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java deleted file mode 100644 index d8659ad0555..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listexamples/SyncListExamplesStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java deleted file mode 100644 index 5cd31e6625f..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructions.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java deleted file mode 100644 index c3469f2874d..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/AsyncListInstructionsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java deleted file mode 100644 index 0bef90eaaa0..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructions.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java deleted file mode 100644 index 91045625fd6..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsProjectnameString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java deleted file mode 100644 index e9dd7acaee0..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/listinstructions/SyncListInstructionsStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java deleted file mode 100644 index dab06b7cdda..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/AsyncPauseEvaluationJob.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java deleted file mode 100644 index 50b185c3a5d..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJob.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java deleted file mode 100644 index cc1b3db790e..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobEvaluationjobname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java deleted file mode 100644 index 21a661554f5..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/pauseevaluationjob/SyncPauseEvaluationJobString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java deleted file mode 100644 index baf23745010..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/AsyncResumeEvaluationJob.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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 future = - dataLabelingServiceClient.resumeEvaluationJobCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_resumeevaluationjob_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java deleted file mode 100644 index 07c980eaa9c..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJob.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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_sync] -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 SyncResumeEvaluationJob { - - public static void main(String[] args) throws Exception { - syncResumeEvaluationJob(); - } - - public static void syncResumeEvaluationJob() 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(); - dataLabelingServiceClient.resumeEvaluationJob(request); - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_resumeevaluationjob_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java deleted file mode 100644 index 64b23be4525..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobEvaluationjobname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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_evaluationjobname_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.EvaluationJobName; -import com.google.protobuf.Empty; - -public class SyncResumeEvaluationJobEvaluationjobname { - - public static void main(String[] args) throws Exception { - syncResumeEvaluationJobEvaluationjobname(); - } - - public static void syncResumeEvaluationJobEvaluationjobname() 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.resumeEvaluationJob(name); - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_resumeevaluationjob_evaluationjobname_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java deleted file mode 100644 index a1cdaf142b0..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/resumeevaluationjob/SyncResumeEvaluationJobString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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_string_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.EvaluationJobName; -import com.google.protobuf.Empty; - -public class SyncResumeEvaluationJobString { - - public static void main(String[] args) throws Exception { - syncResumeEvaluationJobString(); - } - - public static void syncResumeEvaluationJobString() 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.resumeEvaluationJob(name); - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_resumeevaluationjob_string_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java deleted file mode 100644 index cd759458aeb..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluations.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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_searchevaluations_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.SearchEvaluationsRequest; - -public class AsyncSearchEvaluations { - - public static void main(String[] args) throws Exception { - asyncSearchEvaluations(); - } - - public static void asyncSearchEvaluations() 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()) { - SearchEvaluationsRequest request = - SearchEvaluationsRequest.newBuilder() - .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - dataLabelingServiceClient.searchEvaluationsPagedCallable().futureCall(request); - // Do something. - for (Evaluation element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java deleted file mode 100644 index f019fa3af8d..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/AsyncSearchEvaluationsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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_searchevaluations_paged_async] -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.SearchEvaluationsRequest; -import com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse; -import com.google.common.base.Strings; - -public class AsyncSearchEvaluationsPaged { - - public static void main(String[] args) throws Exception { - asyncSearchEvaluationsPaged(); - } - - public static void asyncSearchEvaluationsPaged() 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()) { - SearchEvaluationsRequest request = - SearchEvaluationsRequest.newBuilder() - .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - SearchEvaluationsResponse response = - dataLabelingServiceClient.searchEvaluationsCallable().call(request); - for (Evaluation element : response.getEvaluationsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_paged_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java deleted file mode 100644 index 0c5aa997bb8..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluations.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_searchevaluations_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.SearchEvaluationsRequest; - -public class SyncSearchEvaluations { - - public static void main(String[] args) throws Exception { - syncSearchEvaluations(); - } - - public static void syncSearchEvaluations() 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()) { - SearchEvaluationsRequest request = - SearchEvaluationsRequest.newBuilder() - .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Evaluation element : dataLabelingServiceClient.searchEvaluations(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java deleted file mode 100644 index 6b7b48144d6..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsEvaluationnameString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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_searchevaluations_evaluationnamestring_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.Evaluation; -import com.google.cloud.datalabeling.v1beta1.EvaluationName; - -public class SyncSearchEvaluationsEvaluationnameString { - - public static void main(String[] args) throws Exception { - syncSearchEvaluationsEvaluationnameString(); - } - - public static void syncSearchEvaluationsEvaluationnameString() 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 parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); - String filter = "filter-1274492040"; - for (Evaluation element : - dataLabelingServiceClient.searchEvaluations(parent, filter).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_evaluationnamestring_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java deleted file mode 100644 index 271309c4872..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchevaluations/SyncSearchEvaluationsStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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_searchevaluations_stringstring_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.Evaluation; -import com.google.cloud.datalabeling.v1beta1.EvaluationName; - -public class SyncSearchEvaluationsStringString { - - public static void main(String[] args) throws Exception { - syncSearchEvaluationsStringString(); - } - - public static void syncSearchEvaluationsStringString() 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 = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); - String filter = "filter-1274492040"; - for (Evaluation element : - dataLabelingServiceClient.searchEvaluations(parent, filter).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchevaluations_stringstring_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java deleted file mode 100644 index 84063ee7579..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisons.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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_searchexamplecomparisons_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.EvaluationName; -import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest; -import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; - -public class AsyncSearchExampleComparisons { - - public static void main(String[] args) throws Exception { - asyncSearchExampleComparisons(); - } - - public static void asyncSearchExampleComparisons() 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()) { - SearchExampleComparisonsRequest request = - SearchExampleComparisonsRequest.newBuilder() - .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - dataLabelingServiceClient.searchExampleComparisonsPagedCallable().futureCall(request); - // Do something. - for (SearchExampleComparisonsResponse.ExampleComparison element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java deleted file mode 100644 index feab1e06299..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/AsyncSearchExampleComparisonsPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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_searchexamplecomparisons_paged_async] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.EvaluationName; -import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest; -import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; -import com.google.common.base.Strings; - -public class AsyncSearchExampleComparisonsPaged { - - public static void main(String[] args) throws Exception { - asyncSearchExampleComparisonsPaged(); - } - - public static void asyncSearchExampleComparisonsPaged() 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()) { - SearchExampleComparisonsRequest request = - SearchExampleComparisonsRequest.newBuilder() - .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - SearchExampleComparisonsResponse response = - dataLabelingServiceClient.searchExampleComparisonsCallable().call(request); - for (SearchExampleComparisonsResponse.ExampleComparison element : - response.getExampleComparisonsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_paged_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java deleted file mode 100644 index aec99c45f00..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisons.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_searchexamplecomparisons_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.EvaluationName; -import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest; -import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; - -public class SyncSearchExampleComparisons { - - public static void main(String[] args) throws Exception { - syncSearchExampleComparisons(); - } - - public static void syncSearchExampleComparisons() 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()) { - SearchExampleComparisonsRequest request = - SearchExampleComparisonsRequest.newBuilder() - .setParent(EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (SearchExampleComparisonsResponse.ExampleComparison element : - dataLabelingServiceClient.searchExampleComparisons(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java deleted file mode 100644 index c1ba30ac839..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsEvaluationname.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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_searchexamplecomparisons_evaluationname_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.EvaluationName; -import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; - -public class SyncSearchExampleComparisonsEvaluationname { - - public static void main(String[] args) throws Exception { - syncSearchExampleComparisonsEvaluationname(); - } - - public static void syncSearchExampleComparisonsEvaluationname() 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 parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); - for (SearchExampleComparisonsResponse.ExampleComparison element : - dataLabelingServiceClient.searchExampleComparisons(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_evaluationname_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java deleted file mode 100644 index 2cd68bffe3c..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/searchexamplecomparisons/SyncSearchExampleComparisonsString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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_searchexamplecomparisons_string_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.EvaluationName; -import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse; - -public class SyncSearchExampleComparisonsString { - - public static void main(String[] args) throws Exception { - syncSearchExampleComparisonsString(); - } - - public static void syncSearchExampleComparisonsString() 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 = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]").toString(); - for (SearchExampleComparisonsResponse.ExampleComparison element : - dataLabelingServiceClient.searchExampleComparisons(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_searchexamplecomparisons_string_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java deleted file mode 100644 index e36f178d658..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/AsyncUpdateEvaluationJob.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_updateevaluationjob_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.UpdateEvaluationJobRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateEvaluationJob { - - public static void main(String[] args) throws Exception { - asyncUpdateEvaluationJob(); - } - - public static void asyncUpdateEvaluationJob() 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()) { - UpdateEvaluationJobRequest request = - UpdateEvaluationJobRequest.newBuilder() - .setEvaluationJob(EvaluationJob.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - dataLabelingServiceClient.updateEvaluationJobCallable().futureCall(request); - // Do something. - EvaluationJob response = future.get(); - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_updateevaluationjob_async] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java deleted file mode 100644 index 28d86caaca9..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJob.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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_updateevaluationjob_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.EvaluationJob; -import com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEvaluationJob { - - public static void main(String[] args) throws Exception { - syncUpdateEvaluationJob(); - } - - public static void syncUpdateEvaluationJob() 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()) { - UpdateEvaluationJobRequest request = - UpdateEvaluationJobRequest.newBuilder() - .setEvaluationJob(EvaluationJob.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - EvaluationJob response = dataLabelingServiceClient.updateEvaluationJob(request); - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_updateevaluationjob_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java deleted file mode 100644 index cba6e1b2ee8..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingserviceclient/updateevaluationjob/SyncUpdateEvaluationJobEvaluationjobFieldmask.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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_updateevaluationjob_evaluationjobfieldmask_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient; -import com.google.cloud.datalabeling.v1beta1.EvaluationJob; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEvaluationJobEvaluationjobFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateEvaluationJobEvaluationjobFieldmask(); - } - - public static void syncUpdateEvaluationJobEvaluationjobFieldmask() 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()) { - EvaluationJob evaluationJob = EvaluationJob.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - EvaluationJob response = - dataLabelingServiceClient.updateEvaluationJob(evaluationJob, updateMask); - } - } -} -// [END datalabeling_v1beta1_generated_datalabelingserviceclient_updateevaluationjob_evaluationjobfieldmask_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java deleted file mode 100644 index 9f8425067e2..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/datalabelingservicesettings/createdataset/SyncCreateDataset.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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_datalabelingservicesettings_createdataset_sync] -import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings; -import java.time.Duration; - -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 - DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder = - DataLabelingServiceSettings.newBuilder(); - dataLabelingServiceSettingsBuilder - .createDatasetSettings() - .setRetrySettings( - dataLabelingServiceSettingsBuilder - .createDatasetSettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - DataLabelingServiceSettings dataLabelingServiceSettings = - dataLabelingServiceSettingsBuilder.build(); - } -} -// [END datalabeling_v1beta1_generated_datalabelingservicesettings_createdataset_sync] diff --git a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java b/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java deleted file mode 100644 index cc880452226..00000000000 --- a/datalabeling/snippets/generated/com/google/cloud/datalabeling/v1beta1/stub/datalabelingservicestubsettings/createdataset/SyncCreateDataset.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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.stub.samples; - -// [START datalabeling_v1beta1_generated_datalabelingservicestubsettings_createdataset_sync] -import com.google.cloud.datalabeling.v1beta1.stub.DataLabelingServiceStubSettings; -import java.time.Duration; - -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 - DataLabelingServiceStubSettings.Builder dataLabelingServiceSettingsBuilder = - DataLabelingServiceStubSettings.newBuilder(); - dataLabelingServiceSettingsBuilder - .createDatasetSettings() - .setRetrySettings( - dataLabelingServiceSettingsBuilder - .createDatasetSettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - DataLabelingServiceStubSettings dataLabelingServiceSettings = - dataLabelingServiceSettingsBuilder.build(); - } -} -// [END datalabeling_v1beta1_generated_datalabelingservicestubsettings_createdataset_sync] diff --git a/datalabeling/snippets/pom.xml b/datalabeling/snippets/pom.xml deleted file mode 100644 index e94498f0a68..00000000000 --- a/datalabeling/snippets/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - 4.0.0 - com.google.cloud - datalabeling-snippets - jar - Google Data Labeling Snippets - https://github.com/googleapis/java-datalabeling - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - - com.google.cloud - libraries-bom - 26.1.3 - pom - import - - - - - - - com.google.cloud - google-cloud-datalabeling - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - -