Greetings!
I have setup a page with javascript that uses the closure imports.
In the reference page of protocol buffers they talk about importing your
generated statements using closure imports as follow:
goog.require('proto.my.package.MyMessage');
var message = proto.my.package.MyMessage();
>From what I can see there are no further details on how you read/write to a
specific variables from your module.
At the moment I have two variables in a module called loginInformation:
username and password (both are strings). My question is how I can write
and reads to those using the closure import.
I have tried to write the following line:
var message = new proto.commpackage.loginInformation().setUsername("test");
To insert a string to the username variable, but I am unsure if that is
correct and how I would proceed to read from that.
Kind regards
Valentin
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.