Google apps java sdk

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Tooling and shared libraries for Cloud SDK for Java

License

googleapis/sdk-platform-java

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Читайте также:  Python with open binary file

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Co-authored-by: release-please[bot]

Git stats

Files

Failed to load latest commit information.

README.md

This repository has been renamed to sdk-platfom-java . For developers, please update the repo’s URL in repository clones (this is not actually strictly required because redirection works). For more information, please refer to rename a repository.

This repository consists of the following modules:

  • gapic-generator-java: the Protobuf compiler plugin to generate Java code. See gapic-generator-java/DEVELOPMENT.md for setup.
  • gax-java: the runtime library required for Google Cloud client libraries, including the ones generated by gapic-generator-java.
  • java-common-protos and api-common-java: Protobuf-generated common classes for Google services. (They are not generated by gapic-generator-java)
  • java-iam: Protobuf-generated classes for Google’s Identity and Access Management (IAM). (They are not generated by gapic-generator-java)
  • showcase: demonstration of the generated client library for the fake «Showcase» API.
  • gapic-generator-java-bom: The Bill-of-Material for the libraries produced from this repository. This is used by java-shared-dependencies.

About

Tooling and shared libraries for Cloud SDK for Java

Источник

Google apps java sdk

Other Cloud SIG Sites

Recent site activity

Using the Google App Engine Java SDK

Click here visit the Hello Cloud example

Overview:

Google Apps provides a platform (PaaS) for the development of cloud services. There are actually two platforms; the Python engine and the Java engine. this page documents the steps for setting up and using the Java app engine.

What is the Java Engine:

The Java engine provides a rich application server to host Java EE applications. The Google documentation will take you through the steps of creating a Java Servlet on Eclipse and deploying it to Google Apps. But virtually any Java EE code can be run on the application server. Further, since the app engine employs the Java Virtual Machine (JVM), anything that compiles to JVM executable byte code can be used. So you can develop in Java, Closure, Scala, or any other language runnable on the JVM.

What we did:

This page captures the steps I went through to create a Hello Cloud application on Google Apps using the App Engine SDK for Java.

Step 1 is establishing a Java development environment. You need 2 things to begin: The Java SDK and Eclipse. You don’t actually need Eclipse, but it is by far the easiest way to begin, and is the method I document here.

Get the Java SE Development Kit (JDK) from http://java.sun.com/javase/downloads/index.jsp. You don’t need any of the bundles, just the standard JDK. There is an installer for Windows. Execute the installer and Java is installed. Done.

Get the Eclipse IDE for Java Developers from http://eclipse.org/downloads. There is no installer for this. The Windows distribution comes in a zip file. Open the zip file to see the top level eclipse directory. Open your Program Files directory and drag the top level eclipse directory from the zip file into the Program Files directory. This will expand the eclipse directory and «install» it. That’s all you need to do to get Eclipse installed. In the Program Files/eclipse directory, you will find eclipse.exe. Double click on that to run Eclipse. If you right click on this file and select «send to»/desktop, it will create a short cut icon on your desktop for future use.

Next, you need to set up Eclipse to use the App Engine SDK. Eclipse plugins make this very easy. This is a two-step process. The first step is to navigate to the location on code.google.com so that the plugin url can be copied. Go to http://code.google.com/eclipse/docs/download.html. Under Update Sites, there is a set of entries, one for each of the supported versions of Eclipse. if you just downloaded Eclipse, you have version 3.5. Under that is a url. Highlight and copy this url.

On the Eclipse main menu, select Help. Under Help, select Install New Software. That will bring up teh following dialog box. Click the Add button on the upper right.

You can type whatever you want in the Name field. In the Location field, paste the url that you copied from the google page mentioned above. Click OK.

Eclipse will now fetch info on plugins available at that website and display them in the following dialog:

Problems Encountered:

I had no problems installing the Eclipse plugin in a virgin Eclipse distribution, with no other plugins installed. I had to use the Eclipse for Java developers, though. The plugin would not load on the Eclipse for Java Enterprise developers version, no matter what I did. I also had problems with the Google plugin working with other plugins that I tried. For instance, I tried installing the Eclipse Web Development Tools plugin, and the Google plugin would not load after that. So just use the stock, Eclipse for Java Developers flavor of Eclipse.

I had problems getting JSPs working properly, which made my initial attempt to develop the guestbook tricky. I discovered this set of posts:

Following the advice on how to modify appcfg.cmd did the trick for me. The appcfg.cmd file is in the Eclipse plugins directory for the Google plugin. For me, this is in:

Источник

Инструкции по установке

Оптимизируйте свои подборки Сохраняйте и классифицируйте контент в соответствии со своими настройками.

Если вы не используете сгенерированную библиотеку , вы можете загрузить клиентскую библиотеку Google API для Java и ее зависимости в zip-файле или использовать Maven.

Также см. инструкции по установке ProGuard, которые являются частью документации по клиентской библиотеке Google HTTP для Java.

Скачать библиотеку с зависимостями

Загрузите последний zip-файл, который вы можете найти на странице загрузок , и извлеките его на свой компьютер. Этот ZIP-файл содержит JAR-файлы классов клиентской библиотеки и связанные исходные JAR-файлы для каждого артефакта и его зависимостей. Вы можете найти графики зависимостей и лицензии для различных библиотек в папке зависимостей. Дополнительные сведения о содержимом загрузки см. в файле readme.html.

Андроид

Если вы разрабатываете для Android, и API Google, который вы хотите использовать, включен в библиотеку сервисов Google Play, используйте библиотеку сервисов Google Play для достижения наилучшей производительности и удобства.

Если вы используете клиентскую библиотеку Google API для Java с Android, важно знать, какие зависимости совместимы с Android, в частности, какой уровень Android SDK. Для приложений Android требуются следующие файлы jar или более новые совместимые версии из папки libs:

  • google-api-клиент-2.0.0.jar
  • google-api-клиент-android-2.0.0.jar
  • google-oauth-клиент-1.34.1.jar
  • google-http-клиент-1.42.2.jar
  • google-http-клиент-android-1.42.2.jar
  • gson-2.9.0.jar
  • Джексон-ядро-2.13.3.jar
  • jsr305-3.0.2.jar
  • protobuf-java-3.21.4.jar

Сервер приложений Google

Для приложений Google App Engine требуются следующие JAR-файлы или более новые совместимые версии из папки libs:

  • google-api-клиент-2.0.0.jar
  • google-api-client-appengine-2.0.0.jar
  • google-api-client-servlet-2.0.0.jar
  • google-oauth-клиент-1.34.1.jar
  • google-oauth-client-appengine-1.34.1.jar
  • google-oauth-client-servlet-1.34.1.jar
  • google-http-клиент-1.42.2.jar
  • google-http-client-appengine-1.39.2.jar
  • gson-2.9.0.jar
  • Джексон-ядро-2.13.3.jar
  • jdo2-api-2.3-eb.jar
  • jsr305-3.0.2.jar
  • protobuf-java-3.21.4.jar
  • транзакция-api-1.1.jar
  • xpp3-1.1.4c.jar

Сервлет

Для приложений сервлетов требуются следующие файлы jar или более новые совместимые версии из папки libs:

  • google-api-клиент-2.0.0.jar
  • google-api-client-servlet-2.0.0.jar
  • google-oauth-клиент-1.34.1.jar
  • google-oauth-client-servlet-1.34.1.jar
  • google-http-клиент-1.42.2.jar
  • Commons-logging-1.2.jar
  • gson-2.9.0.jar
  • httpclient-4.5.13.jar
  • httpcore-4.4.12.jar
  • Джексон-ядро-2.13.3.jar
  • jdo2-api-2.3-eb.jar
  • jsr305-3.0.2.jar
  • protobuf-java-3.21.4.jar
  • транзакция-api-1.1.jar
  • xpp3-1.1.4c.jar

Общая Java

Для приложений Java общего назначения требуются следующие файлы jar или более новые совместимые версии из папки libs:

  • google-api-клиент-2.0.0.jar
  • google-oauth-клиент-1.34.1.jar
  • google-http-клиент-1.42.2.jar
  • google-http-client-jackson2-1.39.2.jar
  • Commons-logging-1.2.jar
  • gson-2.9.0.jar
  • httpclient-4.5.13.jar
  • httpcore-4.4.12.jar
  • Джексон-ядро-2.13.3.jar
  • jsr305-3.0.2.jar
  • protobuf-java-3.21.4.jar
  • xpp3-1.1.4c.jar

Сгенерированные библиотеки для API Google

В репозитории сгенерированных библиотек есть инструкции по использованию каждой версии API.

Мавен

Клиентская библиотека Google API для Java находится в центральном репозитории Maven . Идентификатор groupId для всех артефактов этой библиотеки — com.google.api-client . Конкретные инструкции Maven даны для каждого модуля (ниже).

Модули

Эта библиотека состоит из девяти модулей:

google-api-клиент

Клиентская библиотека Google API для Java (google-api-client) совместима со всеми поддерживаемыми платформами Java, включая Android.

 com.google.api-client google-api-client 2.0.0  

На Android вам нужно будет явно исключить неиспользуемые зависимости:

 com.google.api-client google-api-client 2.0.0  xpp3 xpp3  httpclient org.apache.httpcomponents  junit junit  android com.google.android    

google-api-клиент-андроид

Расширения клиентской библиотеки API Google для Java (google-api-client-android) поддерживают приложения Java Google Android (только для SDK >= 2.1). Этот модуль зависит от google-api-client и google-http-client-android.

 com.google.api-client google-api-client-android 2.0.0  

google-api-клиент-сервлет

Расширения сервлетов и JDO для клиентской библиотеки API Google для Java (google-api-client-servlet) поддерживают веб-приложения сервлетов Java. Этот модуль зависит от google-api-client и google-oauth-client-servlet.

 com.google.api-client google-api-client-servlet 2.0.0  

google-api-client-appengine

Расширения Google App Engine для клиентской библиотеки API Google для Java (google-api-client-appengine) поддерживают Java-приложения Google App Engine. Этот модуль зависит от google-api-client, google-api-client-servlet, google-oauth-client-appengine и google-http-client-appengine.

 com.google.api-client google-api-client-appengine 2.0.0  

google-api-клиент-gson

Расширения GSON для клиентской библиотеки Google API для Java (google-api-client-gson). Этот модуль зависит от google-api-client и google-http-client-gson.

 com.google.api-client google-api-client-gson 2.0.0  

google-api-client-jackson2

Расширения Jackson2 для клиентской библиотеки Google API для Java (google-api-client-jackson2). Этот модуль зависит от google-api-client и google-http-client-jackson2.

 com.google.api-client google-api-client-jackson2 2.0.0  

google-api-клиент-java6

Расширения Java 6 (и выше) для клиентской библиотеки Google API для Java (google-api-client-java6). Этот модуль зависит от google-api-client и google-oauth-client-java6.

 com.google.api-client google-api-client-java6 2.0.0  

google-api-клиент-protobuf

Расширения буфера протокола для клиентской библиотеки Google API для Java (google-api-client-protobuf). Этот модуль зависит от google-http-client-protobuf и google-api-client.

 com.google.api-client google-api-client-protobuf 2.0.0  

google-api-клиент-xml

Расширения XML для клиентской библиотеки Google API для Java (google-api-client-xml). Этот модуль зависит от google-api-client и google-http-client-xml.

 com.google.api-client google-api-client-xml 2.0.0  

Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons «С указанием авторства 4.0», а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.

Последнее обновление: 2022-11-05 UTC.

Источник

Оцените статью