This page shows how to get started with the Cloud Client Libraries for the Model Armor API. Client libraries make it easier to access Google Cloud APIs from a supported language. Although you can use Google Cloud APIs directly by making raw requests to the server, client libraries provide simplifications that significantly reduce the amount of code you need to write.
Read more about the Cloud Client Libraries and the older Google API Client Libraries in Client libraries explained.
Install the client library
C#
Install the client library by using one of the following options:- NuGet in Visual Studio Code:
- Enable pre-release packages. For more information, see Include prerelease package versions in the Visual Studio Code documentation..
- Add the
Google.Cloud.ModelArmor.V1package. For more information, see Add a package in the Visual Studio Code documentation.
- NuGet in Visual Studio: For more information, see Installation.
- .NET CLI:
dotnet add package Google.Cloud.ModelArmor.V1 --version 1.0.0-beta05
For more information, see Setting Up a C# Development Environment.
Go
go get cloud.google.com/go/modelarmor
For more information, see Setting Up a Go Development Environment.
Java
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.