Client libraries

While you can use AutoML Natural Language by making direct requests, we provide client libraries for several popular languages. AutoML Natural Language client libraries are built on Google Cloud Client Libraries. This common infrastructure provides functionality for API-specific library implementations, but it also provides types and methods that you may use directly when using any Cloud API.

Available client libraries

AutoML Natural Language provides client libraries and guides for the following languages:

Python

To learn how to install and use the client library for AutoML Natural Language, see AutoML Natural Language client libraries. For more information, see the AutoML Natural Language Python API reference documentation.

To authenticate to AutoML Natural Language, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

This page provides reference documentation and related resources for the AutoML Natural Language Python client library.

Resource Description
Library reference AutoML Natural Language Python library reference
Language guide General guide for using Python with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Python

Installation

To install the client library:

pip install --upgrade google-cloud-automl

Java

To learn how to install and use the client library for AutoML Natural Language, see AutoML Natural Language client libraries. For more information, see the AutoML Natural Language Java API reference documentation.

To authenticate to AutoML Natural Language, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

This page provides reference documentation and related resources for the AutoML Natural Language Java client library.

Resource Description
Library reference AutoML Natural Language Java library reference
Language guide General guide for using Java with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Java

Installation

To install the client library:

If you are using Maven, add the following to your pom.xml file. For more information about BOMs, see The Google Cloud Platform Libraries BOM.

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.google.cloud</groupId>
      <artifactId>libraries-bom</artifactId>
      <version>26.34.0</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>

<dependencies>
  <dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-automl</artifactId>
  </dependency>

If you are using Gradle, add the following to your dependencies:

implementation 'com.google.cloud:google-cloud-automl:2.38.0'

If you are using sbt, add the following to your dependencies:

libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.38.0"

If you're using Visual Studio Code, IntelliJ, or Eclipse, you can add client libraries to your project using the following IDE plugins:

The plugins provide additional functionality, such as key management for service accounts. Refer to each plugin's documentation for details.

Node.js

To learn how to install and use the client library for AutoML Natural Language, see AutoML Natural Language client libraries. For more information, see the AutoML Natural Language Node.js API reference documentation.

To authenticate to AutoML Natural Language, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

This page provides reference documentation and related resources for the AutoML Natural Language Node.js client library.

Resource Description
Library reference AutoML Natural Language Node.js library reference
Language guide General guide for using Node.js with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Node.js

Installation

To install the client library:

npm install --save @google-cloud/automl

C#

To learn how to install and use the client library for AutoML Natural Language, see AutoML Natural Language client libraries.

To authenticate to AutoML Natural Language, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

The C# client libraries for the AutoML Natural Language are currently released as Alpha.

This page provides reference documentation and related resources for the AutoML Natural Language C# client library.

Resource Description
Library reference AutoML Natural Language C# library reference
Language guide General guide for using C# with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and C#

Installation

To install the client library:

install-package Google.Cloud.AutoML.V1 -pre

Go

To learn how to install and use the client library for AutoML Natural Language, see AutoML Natural Language client libraries. For more information, see the AutoML Natural Language Go API reference documentation.

To authenticate to AutoML Natural Language, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

This page provides reference documentation and related resources for the AutoML Natural Language Go client library.

Resource Description
Library reference AutoML Natural Language Go library reference
Language guide General guide for using Go with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Go

Installation

To install the client library:

go get cloud.google.com/go/automl

PHP

To learn how to install and use the client library for AutoML Natural Language, see AutoML Natural Language client libraries.

To authenticate to AutoML Natural Language, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

This page provides reference documentation and related resources for the AutoML Natural Language PHP client library.

Resource Description
Library reference AutoML Natural Language PHP library reference
Language guide General guide for using PHP with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and PHP

Installation

To install the client library:

composer require google/cloud-automl

Ruby

To learn how to install and use the client library for AutoML Natural Language, see AutoML Natural Language client libraries.

To authenticate to AutoML Natural Language, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.

The C# client libraries for AutoML Natural Language are currently released as Alpha.

This page provides reference documentation and related resources for the AutoML Natural Language Ruby client library.

Resource Description
Library reference AutoML Natural Language Ruby library reference
Language guide General guide for using Ruby with GCP
GitHub repository Source code and additional documentation for this library
Stack Overflow Questions tagged with AutoML Natural Language and Ruby

Installation

To install the client library:

gem install google-cloud-automl

Authentication and access control

The AutoML Natural Language quickstart guides provide basic information on authentication and access control. For more detailed information, see the following: