Skip to content

Commit

Permalink
deploy: f840bb3
Browse files Browse the repository at this point in the history
  • Loading branch information
Logofile committed Aug 5, 2024
1 parent 24b8644 commit 88fea58
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Binary file modified images/protocol-buffers-concepts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion overview/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
self-description. That is, you cannot fully interpret one without access to
its corresponding <code>.proto</code> file.</li><li>Protocol buffers are not a formal standard of any organization. This makes
them unsuitable for use in environments with legal or other requirements to
build on top of standards.</li></ul><h2 id=who-uses>Who Uses Protocol Buffers?</h2><p>Many projects use protocol buffers, including the following:</p><ul><li><a href=https://grpc.io>gRPC</a></li><li><a href=https://cloud.google.com>Google Cloud</a></li><li><a href=https://www.envoyproxy.io>Envoy Proxy</a></li></ul><h2 id=work>How do Protocol Buffers Work?</h2><p>The following diagram shows how you use protocol buffers to work with your data.</p><p><img src=/images/protocol-buffers-concepts.png alt><br><strong>Figure 1. Protocol buffers workflow</strong></p><p>The code generated by protocol buffers provides utility methods to retrieve data
build on top of standards.</li></ul><h2 id=who-uses>Who Uses Protocol Buffers?</h2><p>Many projects use protocol buffers, including the following:</p><ul><li><a href=https://grpc.io>gRPC</a></li><li><a href=https://cloud.google.com>Google Cloud</a></li><li><a href=https://www.envoyproxy.io>Envoy Proxy</a></li></ul><h2 id=work>How do Protocol Buffers Work?</h2><p>The following diagram shows how you use protocol buffers to work with your data.</p><p><img src=/images/protocol-buffers-concepts.png alt="Compilation workflow showing the creation of a proto file, generated code, and compiled classes"><br><strong>Figure 1. Protocol buffers workflow</strong></p><p>The code generated by protocol buffers provides utility methods to retrieve data
from files and streams, extract individual values from the data, check if data
exists, serialize data back to a file or stream, and other useful functions.</p><p>The following code samples show you an example of this flow in Java. As shown
earlier, this is a <code>.proto</code> definition:</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-proto data-lang=proto><span style=display:flex><span><span style=color:#204a87;font-weight:700>message</span> <span style=color:#000>Person</span> <span style=color:#000;font-weight:700>{</span><span style=color:#a40000>
Expand Down
Loading

0 comments on commit 88fea58

Please sign in to comment.