Client libraries

Python and Java client libraries are available for AI Platform Data Labeling Service.

Download the client libraries

Python

Follow the Python Client for Data Labeling API instructions to install the Python client library.

Java

Follow the Google Cloud Java Client for Cloud Data Labeling instructions to install the Java client library.

Use the client library

Python

To include the Python client library in your code, add the following import statement.

from google.cloud import datalabeling_v1beta1 as datalabeling

Java

To include the Java client library in your code, add the following to your pom.xml file.

<dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-datalabeling</artifactId>
  <version>0.80.1-alpha-SNAPSHOT</version>
</dependency>