Scratch that. I found where it was being provided. Now, though, I don't 
know how to use the generated JavaScript file.

Say I have a protobuffer definition file:


which defines an message SuperDuperMessage, and I've compiled the proto 
file with protoc into


And let's say I have an AngularJS app with some callback:

      * param {{ data: ArrayBuffer}} response
     *function*(response) {
           *var* ./** SuperDuperMessage */ = *???????*

What do I put in place of the question marks to read the ArrayBuffer from 
the response and deserialize it into the transmitted SuperDuperMessage?


     Jeff the Xoogler

On Thursday, April 28, 2016 at 5:58:42 PM UTC-4, Jeffrey Getzin wrote:
> Hi there,
>  Experimenting with Protobuffers again after being out of Google for a few 
> years. I've been generating C# code for my proto buffer definition files 
> with no problem; the problem is when I generate the JavaScript files.
>  Each generated JavaScript file has the Closure dependency:
> goog.require('jspb.Message');
> However, I can't seem to find any file that contains a 
> goog.provide('jspb.Message'), either locally or on the intertubes. My fear 
> is that the providing file may be internal to Google, in which case protoc 
> is useless to me for generating JavaScript. Is this the case, or is there a 
> file somewhere I'm missing?
>    Thanks,
>        Jeff the Xoogler

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to