Hey Dominik,

com.google.api.services.pubsub comes from Google Cloud Pub/Sub API Client 
Library for Java, 
<https://developers.google.com/api-client-library/java/apis/pubsub/v1> 
while com.google.cloud.pubsub.PubSub comes from the Cloud Pub/Sub Client 
library <https://cloud.google.com/pubsub/docs/reference/libraries>. You can 
read about client libraries in general in the documentation 
<https://cloud.google.com/apis/docs/client-libraries-explained>. Basically, 
you can use either one when both an API client and a Cloud client library 
exist, but the documentation for the API client library will likely 
recommend using the Cloud client library, as is the case for Pub/Sub (see 
the first link in this reply).

I hope this is helpful in explaining, let me know if you have any other 
questions.

Cheers,

Nick
Cloud Platform Community Support




On Thursday, November 17, 2016 at 2:43:40 PM UTC-5, Dominik Basner wrote:
>
> Hi,
>
> I want to write some code for AppEngine and I'm not sure which of both I 
> should use.
>
> Thanks
>
> Dominik
>
> Besuchen Sie unseren Chrome Webshop unter shop.cloudwuerdig.com
>
> www.sotec.eu | www.cloudwuerdig.com 
> -- 
> SOTEC Software Entwicklungs GmbH + Co Mikrocomputertechnik KG 
> Calwer Straße 11, D-75395 Ostelsheim 
> Sitz Ostelsheim, Amtsgericht Stuttgart HRA 330821/HRB 330664, 
> Geschäftsführer: Florian Holz 
> Cloudwürdig® ist eine eingetragene Marke der SOTEC Software Entwicklungs 
> GmbH + Co Mikrocomputertechnik KG
>
> Der Inhalt dieser e-Mail ist ausschließlich für den bezeichneten 
> Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser e-Mail 
> oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form 
> der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des 
> Inhalts dieser e-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall 
> mit dem Absender der e-Mail in Verbindung zu setzen.
>
> The content of this e-mail is meant exclusively for the person to whom it 
> is addressed. If you are not the person to whom this e-mail is addressed or 
> his/her representative, please be informed, that any form of knowledge, 
> publication, duplication or distribution of the content of this e-mail is 
> inadmissible. We ask you, therefore, in such a case to please contact the 
> sender of this e-mail.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7745203c-1705-4ad4-aa95-3bf596540a59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to