Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
Protocol buffers Demo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mohamadbashar.disoki
Protocol buffers Demo
Commits
1f9d5ca5
Commit
1f9d5ca5
authored
Oct 16, 2024
by
Mohamad Bashar Desoki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Readme.md
parent
589e1624
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
Readme.md
Readme.md
+23
-0
Main.java
src/main/java/org/ds/Main.java
+2
-1
No files found.
Readme.md
0 → 100644
View file @
1f9d5ca5
# ProtoBuf
### Data as json (RestF)
[
name: "Mohamad"
age: 40
, name: "Ahmad"
age: 40
]
<br>
**50 byte**
### Encode Data using protobuf
10 11 10 7 77 111 104 97 109 97 100 16 40 10 9 10 5 65 104 109 97 100 16 40
<br>
**24 byte**
### Ref
*
[
Why GRPC? How protobuf empowers GRPC?
](https://www.youtube.com/watch?v=9ttYs4dXc9k&list=PL1F54YqZCTdxpGWMM7zyOigOQ_MVwSNc2&index=2&ab_channel=BetterDevwithAnubhav)
*
[
How Protocol buffers help GRPC | Code Tutorial | Java
](
https://www.youtube.com/watch?v=UAZ5Y9gay30&list=PL1F54YqZCTdxpGWMM7zyOigOQ_MVwSNc2&index=3&ab_channel=BetterDevwithAnubhav
)
*
[
Java Generated Code Guide
](
https://protobuf.dev/reference/java/java-generated/#invocation
)
\ No newline at end of file
src/main/java/org/ds/Main.java
View file @
1f9d5ca5
...
@@ -39,4 +39,5 @@ public class Main {
...
@@ -39,4 +39,5 @@ public class Main {
}
}
}
}
//./protoc --proto_path=src --java_out=.\src\main\java .\src\proto\student.proto
//./protoc --proto_path=src --java_out=.\src\main\java .\src\proto\student.proto
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment