-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ichiro-its/feature/create-grpc-service
[Sprint 22/23 / PD-405] [[Feature] Add implementation GRPC
- Loading branch information
Showing
3 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
string name | ||
int32 min_hue | ||
int32 max_hue | ||
int32 min_saturation | ||
int32 max_saturation | ||
int32 min_value | ||
int32 max_value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
syntax = "proto3"; | ||
|
||
package ninshiki_interfaces.proto; | ||
|
||
service Config { | ||
rpc GetColorSetting (Empty) returns (ConfigColor) {} | ||
|
||
rpc SaveColorSetting (ConfigColor) returns (Empty) {} | ||
|
||
rpc SetColorSetting (ColorSetting) returns (Empty) {} | ||
} | ||
|
||
message Empty {} | ||
|
||
message ConfigColor { | ||
string json_color = 1; | ||
} | ||
|
||
message ColorSetting { | ||
string name = 1; | ||
int32 min_hue = 2; | ||
int32 max_hue = 3; | ||
int32 min_saturation = 4; | ||
int32 max_saturation = 5; | ||
int32 min_value = 6; | ||
int32 max_value = 7; | ||
} |