Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: third_party/protobuf/js/README.md

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Protocol Buffers - Google's data interchange format 1 Protocol Buffers - Google's data interchange format
2 =================================================== 2 ===================================================
3 3
4 [![Build Status](https://travis-ci.org/google/protobuf.svg?branch=master)](https ://travis-ci.org/google/protobuf) 4 [![Build Status](https://travis-ci.org/google/protobuf.svg?branch=master)](https ://travis-ci.org/google/protobuf)
5 5
6 Copyright 2008 Google Inc. 6 Copyright 2008 Google Inc.
7 7
8 This directory contains the JavaScript Protocol Buffers runtime library. 8 This directory contains the JavaScript Protocol Buffers runtime library.
9 9
10 The library is currently compatible with: 10 The library is currently compatible with:
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 var message = new MyMessage(); 146 var message = new MyMessage();
147 147
148 message.setName("John Doe"); 148 message.setName("John Doe");
149 message.setAge(25); 149 message.setAge(25);
150 message.setPhoneNumbers(["800-555-1212", "800-555-0000"]); 150 message.setPhoneNumbers(["800-555-1212", "800-555-0000"]);
151 151
152 // Serializes to a UInt8Array. 152 // Serializes to a UInt8Array.
153 bytes = message.serializeBinary(); 153 bytes = message.serializeBinary();
154 154
155 var message2 = new MyMessage(); 155 var message2 = MyMessage.deserializeBinary(bytes);
156 message2.deserializeBinary(bytes);
157 156
158 For more examples, see the tests. You can also look at the generated code 157 For more examples, see the tests. You can also look at the generated code
159 to see what methods are defined for your generated messages. 158 to see what methods are defined for your generated messages.
OLDNEW
« no previous file with comments | « third_party/protobuf/jenkins/pull_request_in_docker.sh ('k') | third_party/protobuf/js/binary/constants.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698