*.proto API files?

92 views
Skip to first unread message

Shawn Lewis

unread,
Feb 7, 2012, 11:25:44 PM2/7/12
to google-a...@googlegroups.com
Can't find 'em in the API source.

In this old thread someone mentioned they'd be released soon, but that was 2008. I'm probably just not looking hard enough.

Thanks!

Robert Kluin

unread,
Feb 8, 2012, 1:37:34 AM2/8/12
to google-a...@googlegroups.com
Hi Shawn,
I'm not sure exactly what you're looking for, but this has been open
source for quite some time. In the case of Python see:
http://code.google.com/p/googleappengine/source/browse/#svn%2Ftrunk%2Fpython%2Fgoogle%2Fnet

And for a very tedious usage example:
http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/datastore/datastore_pb.py

As I recall, the App Engine implementation differs from the open
source implementation. I'm not sure of the specifics of that and have
never personally verified that -- its just something I recall from
some threads long ago.
http://code.google.com/apis/protocolbuffers/

Robert

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.

Anand Mistry

unread,
Feb 8, 2012, 5:12:24 PM2/8/12
to google-a...@googlegroups.com
Are you looking for the .proto definition files used to generate the Python code? As far as I know, we haven't open sourced those files. I think that up till now, it hasn't been necessary, and no-one (that I can tell) has requested them for a few years.

Is there a particular reason why you'd like to see these, or is it out of curiosity?


  As I recall, the App Engine implementation differs from the open

source implementation.  I'm not sure of the specifics of that and have
never personally verified that -- its just something I recall from
some threads long ago.
    http://code.google.com/apis/protocolbuffers/

It's an implementation detail, but yeah, the Python 2.5 runtime uses the old proto1, whereas Python 2.7 uses proto2.

Shawn Lewis

unread,
Feb 10, 2012, 1:23:30 PM2/10/12
to google-a...@googlegroups.com
I should be able to get the information I was after from the compiled
python protocol buffers.

But to answer your question, in this case I was wondering what the
behavior is when .setCount isn't called on the NextResult pb in
QueryResultsSourceImpl.java. Of course I could glean the default value
by running code that calls it, but I prefer looking at code. Also,
perhaps the default is set on the other side of the RPC, in which case
I'll never have access.

Not having the proto files feels like a dead end in the java source.
I'm an ex-Googler SWE myself and know that they're often
well-commented and descriptive of the RPC being called, which can be
useful information. Its not a big deal though, if you don't get many
requests to release them, don't bother.

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.

> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/hjZ2CTqf9JUJ.

GAE

unread,
Feb 22, 2012, 3:19:19 PM2/22/12
to google-a...@googlegroups.com
Hi,

Could you release the .proto file for the Files API? I'd like to create my own implementation of the Files API in Java.

Thanks in Advance

Anand K. Mistry

unread,
Feb 28, 2012, 7:37:04 AM2/28/12
to google-a...@googlegroups.com
Considering the Files API is experimental and may undergo significant changes at the lower level, I don't think it's appropriate to make the .proto file for that API available.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/UnEX6dvfYzQJ.

To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Anand K. Mistry
Software Engineer
Google Australia

Reply all
Reply to author
Forward
0 new messages