GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Documentation
  • Get Started with Google Cloud
  • Product List
  • Cloud Customer Care
  • Agent Platform
  • Apigee API Management
  • BigQuery
  • Compute Engine
  • Cloud CDN
  • Cloud Run
  • Cloud Storage
  • Cloud SQL
  • Gemini Enterprise
  • Google Kubernetes Engine

This view

  • Original page
  • New address

GeezerVison is showing docs.cloud.google.com — Generating a client library | Cloud Endpoints Frameworks for App Engine | Google Cloud Documentation

Generating a client library Stay organized with collections Save and categorize content based on your preferences.

This page describes how to generate a client library from your backend API. Any Java or Android app can use this library to call the API.

To create iOS clients for your API, we recommend that you use Google APIs Objective-C Client Library for REST APIs.

Before you begin

  • Set up your development environment.
  • Make sure you have properly annotated your API.

Generating the client library

The following instructions demonstrate how to use the Cloud Endpoints Frameworks Apache Maven and Gradle plugins to generate a Gradle client bundle from the sample Maven project Getting started with Endpoints.

To generate a client library:

  1. Build your API

  2. Run the Endpoints Frameworks command-line tool similarly to the following:

    Maven

    mvn endpoints-framework:clientLibs

    Gradle

    gradle endpointsClientLibs

    Wait for the tool to generate the library; on success the tool displays a message similar to this one:

    Maven

    API client library written to target/client-libs/echo-v1-java.zip

    Gradle

    API client library written to build/endpointsClientLibs/echo-v1-java.zip
  3. Unzip the file by using the unzip utility, or use another ZIP-compatible unarchiving utility:

    unzip ./echo-v1-java.zip
    
  4. Change directory:

    cd echo
    
  5. Build the client library:

    Maven

    mvn clean package

    The output is in the target/ directory. The exact filename depends on the version of the Java client. It is something similar to echo-v1-1.23.0-SNAPSHOT.jar.

    Gradle

    gradle build

    The output is in the build/libs directory. The exact filename depends on the version of the Java client. It is something similar to echo-v1-1.23.0-SNAPSHOT.jar.

  6. Add the client library JAR to your Java or Android app.

  7. Repeat these steps every time you modify your API code.

What's next

  • Call the backend API from an Android app.
  • Learn more about Cloud Endpoints Frameworks for App Engine.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-11-10 UTC.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.