use oneof in Claim message #27

Merged
eukreign merged 1 commit from claim_oneof into master 2019-03-14 18:59:46 +01:00

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 {