use oneof in Claim message

This commit is contained in:
Lex Berezhny 2019-03-13 17:18:57 -04:00
parent a6f2fd6d5f
commit d4f819a7a6

View file

@ -3,14 +3,10 @@ syntax = "proto3";
package pb;
message Claim {
enum Type {
STREAM = 0;
CHANNEL = 1;
}
Type type = 1; // do we need this?
Stream stream = 2;
Channel channel = 3;
oneof type {
Stream stream = 1;
Channel channel = 2;
}
}
message Channel {