-
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.
Move all messages under Any and decouple flows
- Loading branch information
Showing
9 changed files
with
165 additions
and
164 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,16 @@ | ||
syntax = "proto3"; | ||
|
||
package common.v1; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
|
||
message Ping { | ||
string id = 1; | ||
google.protobuf.Timestamp timestamp = 2; | ||
} | ||
|
||
message Pong { | ||
string id = 1; | ||
google.protobuf.Timestamp timestamp = 2; | ||
google.protobuf.Timestamp ping_timestamp = 3; | ||
} |
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,31 @@ | ||
syntax = "proto3"; | ||
|
||
package common.v1; | ||
|
||
// Wrapper message for all messages that can be sent to and from the orb. The reason we do this is to ensure static | ||
// typing in the clients while the server can still handle all messages through the Any type. | ||
message W { | ||
oneof w { | ||
NoState no_state = 1; | ||
AnnounceOrbId announce_orb_id = 2; | ||
} | ||
} | ||
|
||
message NoState {} | ||
message AnnounceOrbId { | ||
enum ModeType { | ||
MODE_TYPE_UNSPECIFIED = 0; | ||
MODE_TYPE_LEGACY = 1; | ||
MODE_TYPE_SELF_SERVE = 2; | ||
} | ||
|
||
enum HardwareType { | ||
HARDWARE_TYPE_UNSPECIFIED = 0; | ||
HARDWARE_TYPE_PEARL = 1; | ||
HARDWARE_TYPE_DIAMOND = 2; | ||
} | ||
|
||
string orb_id = 1; | ||
ModeType mode_type = 2; | ||
HardwareType hardware_type = 3; | ||
} |
Oops, something went wrong.