public Pb.Filter ConvertToPBFilter() { var internalFilter = new Pb.WhileMatchFilter { Filter = MatchingFilter.ConvertToPBFilter() }; var filter = new Pb.Filter { Name = Name, SerializedFilter = internalFilter.ToByteString() }; return(filter); }