From d4f819a7a6747e827d265283cced864246183007 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 13 Mar 2019 17:18:57 -0400 Subject: [PATCH] use oneof in Claim message --- v2/proto/claim.proto | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/v2/proto/claim.proto b/v2/proto/claim.proto index 726402d..0ecb3d8 100644 --- a/v2/proto/claim.proto +++ b/v2/proto/claim.proto @@ -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 { -- 2.45.2