aboutsummaryrefslogtreecommitdiff
path: root/chapter
diff options
context:
space:
mode:
authorPaul Grosu <pgrosu@gmail.com>2016-12-06 18:26:40 -0500
committerPaul Grosu <pgrosu@gmail.com>2016-12-06 18:26:40 -0500
commit48ff73298ef9c06266fd031e5eceeb8128df0206 (patch)
tree4e4508c9ac2a630e0400e33b196dc47482f1928a /chapter
parentdb03fdb08aedc5125580c7ec8baa7215f08fea92 (diff)
submit
Diffstat (limited to 'chapter')
-rw-r--r--chapter/1/gRPC.md13
1 files changed, 4 insertions, 9 deletions
diff --git a/chapter/1/gRPC.md b/chapter/1/gRPC.md
index 741f265..62a3795 100644
--- a/chapter/1/gRPC.md
+++ b/chapter/1/gRPC.md
@@ -69,15 +69,10 @@ message Hello {
This message will also be encoded for highest compression when sent over the wire. For example, let us say that the message is the string <em>"Hi"</em>.
-<table width="50%" border=1>
-<tr><th>Type</th><th>Meaning</th><th>Used For</th></tr>
-<tr><td>0</td><td>Varint</td><td>int32, int64, uint32, uint64, sint32, sint64, bool, enum</td><tr>
-<tr><td>1</td><td>64-bit</td><td>fixed64, sfixed64, double</td><tr>
-<tr><td>2</td><td>Length-delimited</td><td>string, bytes, embedded messages, packed repeated fields</td><tr>
-<tr><td>3</td><td>Start group</td><td>groups (deprecated)</td><tr>
-<tr><td>4</td><td>End group</td><td>groups (deprecated)</td><tr>
-<tr><td>5</td><td>32-bit</td><td>fixed32, sfixed32, float</td><tr>
-</table>
+<p align="center">
+ <img src="figures/protobuf-types.png" /><br>
+ <em>Table 1: Tag values for Protocol Buffer types.</em>
+</p>
Thus the language had to be updated to support gRPC and the development of a service message with a request and a response definition was added for version version 3.0 of Protocol Buffers. The updated implementation would look as follows {% cite HelloWorldProto %}: