Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
distributed-calculator
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
tammam.alsoleman
distributed-calculator
Commits
51e2f508
Commit
51e2f508
authored
Nov 11, 2025
by
tammam.alsoleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.proto add
parent
44de3e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
calculator.proto
proto/calculator.proto
+38
-0
No files found.
proto/calculator.proto
0 → 100644
View file @
51e2f508
syntax
=
"proto3"
;
package
calculator
;
option
java_package
=
"com.calculator.multiplication.generated"
;
option
java_multiple_files
=
true
;
service
Calculator
{
rpc
Add
(
Numbers
)
returns
(
Result
);
rpc
Multiply
(
Numbers
)
returns
(
Result
);
rpc
GetOperationHistory
(
Empty
)
returns
(
stream
OperationHistory
);
}
message
Numbers
{
int32
a
=
1
;
int32
b
=
2
;
}
message
Result
{
int32
value
=
1
;
string
operation
=
2
;
}
message
OperationHistory
{
string
service_name
=
1
;
repeated
Operation
operations
=
2
;
}
message
Operation
{
string
type
=
1
;
int32
a
=
2
;
int32
b
=
3
;
int32
result
=
4
;
string
timestamp
=
5
;
}
message
Empty
{}
\ 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